Skip to content

Commit

Permalink
Fix broken tests after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
U-lis committed Jun 19, 2024
1 parent bd1d8f7 commit b3a63f2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
28 changes: 14 additions & 14 deletions .Lib9c.Tests/Action/AdventureBoss/ClaimAdventureBossRewardTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ public static IEnumerable<object[]> GetWantedTestData()
},
FavReward = new Dictionary<int, int>
{
{ 20001, 0 },
{ 30001, 14 },
{ 20001, 14 },
{ 30001, 0 },
},
},
};
Expand All @@ -150,8 +150,8 @@ public static IEnumerable<object[]> GetWantedTestData()
},
FavReward = new Dictionary<int, int>
{
{ 20001, 0 },
{ 30001, 14 }, // (200*1.2) * 0.3 / 2.5 * (120/240)
{ 20001, 14 }, // (200*1.2) * 0.3 / 2.5 * (120/240)
{ 30001, 0 },
},
},
};
Expand All @@ -172,8 +172,8 @@ public static IEnumerable<object[]> GetWantedTestData()
},
FavReward = new Dictionary<int, int>
{
{ 20001, 0 },
{ 30001, 12 }, // (300*1.2) * 0.3 / 2.5 * (100/360)
{ 20001, 12 }, // (300*1.2) * 0.3 / 2.5 * (100/360)
{ 30001, 0 },
},
},
};
Expand Down Expand Up @@ -285,8 +285,8 @@ public static IEnumerable<object[]> GetPrevRewardTestData()
},
FavReward = new Dictionary<int, int>
{
{ 20001, 0 },
{ 30001, 14 },
{ 20001, 14 },
{ 30001, 0 },
},
},
};
Expand Down Expand Up @@ -322,8 +322,8 @@ public static IEnumerable<object[]> GetPrevRewardTestData()
},
FavReward = new Dictionary<int, int>
{
{ 20001, 0 },
{ 30001, 14 },
{ 20001, 14 },
{ 30001, 0 },
},
},
};
Expand Down Expand Up @@ -433,8 +433,8 @@ public void WantedMultipleSeason()
NcgReward = 0 * NCG, // No Raffle Reward
FavReward = new Dictionary<int, int>
{
{ 20001, 0 },
{ 30001, 28 },
{ 20001, 28 },
{ 30001, 0 },
},
ItemReward = new Dictionary<int, int>
{
Expand Down Expand Up @@ -811,8 +811,8 @@ public void AllReward()
NcgReward = 20 * NCG,
FavReward = new Dictionary<int, int>
{
{ 20001, 0 },
{ 30001, 14 },
{ 20001, 14 },
{ 30001, 0 },
},
ItemReward = new Dictionary<int, int>
{
Expand Down
4 changes: 2 additions & 2 deletions .Lib9c.Tests/Action/AdventureBoss/WantedTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void Execute()
Assert.Equal(600201, bountyBoard.FixedRewardItemId);
Assert.Null(bountyBoard.FixedRewardFavId);
Assert.Null(bountyBoard.RandomRewardItemId);
Assert.Equal(30001, bountyBoard.RandomRewardFavId);
Assert.Equal(20001, bountyBoard.RandomRewardFavId);

var investor = Assert.Single(bountyBoard.Investors);
Assert.Equal(
Expand Down Expand Up @@ -151,7 +151,7 @@ public void Execute()
Assert.Equal(600201, bountyBoard.FixedRewardItemId);
Assert.Null(bountyBoard.FixedRewardFavId);
Assert.Null(bountyBoard.RandomRewardItemId);
Assert.Equal(30001, bountyBoard.RandomRewardFavId);
Assert.Equal(20001, bountyBoard.RandomRewardFavId);

investor = bountyBoard.Investors.First(i => i.AvatarAddress == AvatarAddress2);
Assert.Equal(minBounty * NCG, investor.Price);
Expand Down

0 comments on commit b3a63f2

Please sign in to comment.