From 5d297949b6bca5e0996696fa51fc03338331cad0 Mon Sep 17 00:00:00 2001 From: hyeon Date: Fri, 3 Nov 2023 12:41:56 +0900 Subject: [PATCH] Fix broken test code and add test cases --- .../GraphTypes/ActionQueryTest.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/NineChronicles.Headless.Tests/GraphTypes/ActionQueryTest.cs b/NineChronicles.Headless.Tests/GraphTypes/ActionQueryTest.cs index 4f65c7e59..d9b1088c9 100644 --- a/NineChronicles.Headless.Tests/GraphTypes/ActionQueryTest.cs +++ b/NineChronicles.Headless.Tests/GraphTypes/ActionQueryTest.cs @@ -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 @@ -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(); @@ -1366,7 +1367,7 @@ public async Task ClaimItems(int claimDataCount) Currency.Uncapped( ticker: ticker, decimalPlaces: 0, - minters: new AddressSet(new List
()) + minters: AddressSet.Empty ), random.Next(1, 100), 0 ) @@ -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); } } }