mirror of
				https://github.com/MoleskiCoder/EightBitNet.git
				synced 2025-11-04 07:16:02 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			601 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			601 B
		
	
	
	
		
			C#
		
	
	
	
	
	
namespace M6502.HarteTest
 | 
						|
{
 | 
						|
    public 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 (Cycles == null)
 | 
						|
            {
 | 
						|
                throw new InvalidOperationException("Cycles have not been initialised");
 | 
						|
            }
 | 
						|
 | 
						|
            foreach (var cycle in Cycles)
 | 
						|
            {
 | 
						|
                yield return new Cycle(cycle);
 | 
						|
            }
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |