Tweaks for JSON loading, minor refactor of unit tests

This commit is contained in:
Deukhoofd committed 2025-02-08 09:49:16 +01:00
1 parent 51dfc4d07e
commit 58e9f4c3d1
11 files changed
+63 -34

No files matched your search

@@ -15,6 +15,8 @@ public class IntegrationTestRunner
var serializerOptions = new JsonSerializerOptions
{
PropertyNameCaseInsensitive = true,
AllowTrailingCommas = true,
ReadCommentHandling = JsonCommentHandling.Skip,
};
foreach (var file in files)
{
@@ -6,6 +6,12 @@ public class IntegrationTestModel
public string Description { get; set; } = null!;
public IntegrationTestBattleSetup BattleSetup { get; set; } = null!;
public IntegrationTestAction[] Actions { get; set; } = null!;
/// <inheritdoc />
public override string ToString()
{
return Name;
}
}
public class IntegrationTestBattleSetup