Skip to content

Commit

Permalink
Fix broken test code and add test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
U-lis committed Nov 3, 2023
1 parent b706167 commit 5d29794
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions NineChronicles.Headless.Tests/GraphTypes/ActionQueryTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
using Nekoyume.TableData;
using NineChronicles.Headless.GraphTypes;
using Xunit;
using Xunit.Abstractions;
using static NineChronicles.Headless.Tests.GraphQLTestUtils;

namespace NineChronicles.Headless.Tests.GraphTypes
Expand Down Expand Up @@ -1346,6 +1345,8 @@ public async Task AuraSummon()
[Theory]
[InlineData(1)]
[InlineData(2)]
[InlineData(10)]
[InlineData(100)]
public async Task ClaimItems(int claimDataCount)
{
var random = new Random();
Expand All @@ -1366,7 +1367,7 @@ public async Task ClaimItems(int claimDataCount)
Currency.Uncapped(
ticker: ticker,
decimalPlaces: 0,
minters: new AddressSet(new List<Address>())
minters: AddressSet.Empty
),
random.Next(1, 100), 0
)
Expand Down Expand Up @@ -1413,8 +1414,8 @@ public async Task ClaimItems(int claimDataCount)
for (var j = 0; j < expectedFavList.Count; j++)
{
// Assert.Equal(expectedFavList[i], actualFavList[i]);
Assert.Equal(expectedFavList[i].Currency.Ticker, actualFavList[i].Currency.Ticker);
Assert.Equal(expectedFavList[i].RawValue, actualFavList[i].RawValue);
Assert.Equal(expectedFavList[j].Currency.Ticker, actualFavList[j].Currency.Ticker);
Assert.Equal(expectedFavList[j].RawValue, actualFavList[j].RawValue);
}
}
}
Expand Down

0 comments on commit 5d29794

Please sign in to comment.