Skip to content

Commit

Permalink
Extended test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarno458 committed Aug 2, 2024
1 parent b73f3a4 commit f1e8e60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Archipelago.MultiClient.Net.Tests/GameDataLookupFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ public void should_not_crash_on_invalid_gamedata_with_duplicated_ids()
Assert.That(sut.Items["Item2"], Is.EqualTo(100));
Assert.That(sut.Items["Item3"], Is.EqualTo(102));
Assert.That(sut.Items[100], Is.EqualTo("Item2"));
Assert.Throws<KeyNotFoundException>(() => _ = sut.Items[101]);
Assert.That(sut.Items[102], Is.EqualTo("Item3"));

Assert.That(sut.Locations["Location1"], Is.EqualTo(1000));
Assert.That(sut.Locations["Location2"], Is.EqualTo(1001));
Assert.That(sut.Locations["Location3"], Is.EqualTo(1001));
Assert.That(sut.Locations[1000], Is.EqualTo("Location1"));
Assert.That(sut.Locations[1001], Is.EqualTo("Location3"));
Assert.Throws<KeyNotFoundException>(() => _ = sut.Locations[1002]);
}
}
}

0 comments on commit f1e8e60

Please sign in to comment.