Skip to content

Commit

Permalink
Add alias test
Browse files Browse the repository at this point in the history
  • Loading branch information
lahm86 committed May 6, 2024
1 parent d6097f1 commit 1447058
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions TRDataControlTests/IO/ImportTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,24 @@ public void TestTR5Import()
Assert.IsTrue(level.Models.ContainsKey(TR5Type.Huskie));
}

[TestMethod]
[Description("Test that importing a non-specific type that has aliases fails.")]
public void TestAliasImport()
{
TR2DataImporter importer = new()
{
Level = GetTR2TestLevel(),
TypesToImport = new() { TR2Type.StickWieldingGoon1 },
};

try
{
importer.Import();
Assert.Fail();
}
catch (TransportException) { }
}

private static void ExportTR1Model(TR1Type type, TRBlobType blobType)
{
TR1Level level = GetTR1TestLevel();
Expand Down

0 comments on commit 1447058

Please sign in to comment.