Files
EightBitNet/M6502/M6502.HarteTest/Test.cs
2024-10-12 10:20:29 +01:00

27 lines
613 B
C#

namespace M6502.HarteTest
{
internal sealed class Test
{
public string? Name { get; set; }
public State? Initial { get; set; }
public State? Final { get; set; }
public List<List<object>>? Cycles { get; set; }
public IEnumerable<Cycle> AvailableCycles()
{
if (this.Cycles == null)
{
throw new InvalidOperationException("Cycles have not been initialised");
}
foreach (var cycle in this.Cycles)
{
yield return new Cycle(cycle);
}
}
}
}