From f1e8e60ce069acbdcb2b46e377c33f1636d56ecf Mon Sep 17 00:00:00 2001 From: Jarno Westhof Date: Fri, 2 Aug 2024 18:12:11 +0200 Subject: [PATCH] Extended test cases --- Archipelago.MultiClient.Net.Tests/GameDataLookupFixture.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Archipelago.MultiClient.Net.Tests/GameDataLookupFixture.cs b/Archipelago.MultiClient.Net.Tests/GameDataLookupFixture.cs index fe350c7..6d7b002 100644 --- a/Archipelago.MultiClient.Net.Tests/GameDataLookupFixture.cs +++ b/Archipelago.MultiClient.Net.Tests/GameDataLookupFixture.cs @@ -36,6 +36,7 @@ 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(() => _ = sut.Items[101]); Assert.That(sut.Items[102], Is.EqualTo("Item3")); Assert.That(sut.Locations["Location1"], Is.EqualTo(1000)); @@ -43,6 +44,7 @@ public void should_not_crash_on_invalid_gamedata_with_duplicated_ids() 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(() => _ = sut.Locations[1002]); } } }