Support for integration tests, fixes

This commit is contained in:
2024-08-23 11:15:53 +02:00
parent e7dc885afd
commit 2a0aaed4c3
13 changed files with 346 additions and 14 deletions

View File

@@ -0,0 +1,31 @@
namespace PkmnLib.Tests.Integration.Models;
public class IntegrationTestModel
{
public string Name { get; set; } = null!;
public string Description { get; set; } = null!;
public IntegrationTestBattleSetup BattleSetup { get; set; } = null!;
public IntegrationTestAction[] Actions { get; set; } = null!;
}
public class IntegrationTestBattleSetup
{
public int Seed { get; set; }
public bool CanFlee { get; set; }
public byte NumberOfSides { get; set; }
public byte PositionsPerSide { get; set; }
public IntegrationTestParty[] Parties { get; set; } = null!;
}
public class IntegrationTestParty
{
public List<List<byte>> Indices { get; set; } = null!;
public IntegrationTestPokemon[] Pokemon { get; set; } = null!;
}
public class IntegrationTestPokemon
{
public string Species { get; set; } = null!;
public LevelInt Level { get; set; }
public string[] Moves { get; set; } = null!;
}