Tweaks for JSON loading, minor refactor of unit tests

This commit is contained in:
2025-02-08 09:49:16 +01:00
parent 51dfc4d07e
commit 58e9f4c3d1
11 changed files with 63 additions and 34 deletions

View File

@@ -15,6 +15,8 @@ public class IntegrationTestRunner
var serializerOptions = new JsonSerializerOptions
{
PropertyNameCaseInsensitive = true,
AllowTrailingCommas = true,
ReadCommentHandling = JsonCommentHandling.Skip,
};
foreach (var file in files)
{

View File

@@ -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