From 357ddc7043a2d3d96efd8f77918c1e4b8327743b Mon Sep 17 00:00:00 2001 From: Sooamazing Date: Sun, 27 Oct 2024 16:55:30 +0900 Subject: [PATCH] add all field value comparisons to existing agent tests --- Mimir.E2ETests/AgentTests.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Mimir.E2ETests/AgentTests.cs b/Mimir.E2ETests/AgentTests.cs index 68b62fdf..bf437f17 100644 --- a/Mimir.E2ETests/AgentTests.cs +++ b/Mimir.E2ETests/AgentTests.cs @@ -26,6 +26,21 @@ public async Task CompareAgentDataFromDifferentServices_ShouldMatch(string addre var agentDataFromHeadless = await GetHeadlessAgentData(new Address(address)); Assert.Equal(agentDataFromMimir.Address, agentDataFromHeadless.Address.ToString()); + Assert.Equal(agentDataFromMimir.MonsterCollectionRound, agentDataFromHeadless.MonsterCollectionRound); + + var mimirAvatarAddresses = agentDataFromMimir.AvatarAddresses; + var headlessAvatarAddresses = agentDataFromHeadless.AvatarAddresses; + foreach (var mimirAddress in mimirAvatarAddresses) + { + if (headlessAvatarAddresses.TryGetValue(mimirAddress.Key, out var headlessValue)) + { + Assert.Equal(mimirAddress.Value, headlessValue.ToString()); + } + else + { + Assert.Fail(); + } + } } public async Task GetMimirAgentData(Address address) @@ -45,4 +60,4 @@ public async Task GetHeadlessAgentData(Address address) var result = CodecUtil.DecodeState(stateResponse.Data.State); return new AgentState(result); } -} +} \ No newline at end of file