Skip to content

Commit

Permalink
Merge pull request #453 from Sooamazing/agent_e2e_test
Browse files Browse the repository at this point in the history
add all field value comparisons to existing agent tests
  • Loading branch information
boscohyun authored Nov 5, 2024
2 parents 696755d + 61442de commit c4a6ff3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Mimir.E2ETests/AgentTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<IGetAgent_Agent> GetMimirAgentData(Address address)
Expand Down

0 comments on commit c4a6ff3

Please sign in to comment.