Files
EightBitNet/M6502/M6502.HarteTest/ProcessorTestSuite.cs
2024-07-19 10:34:35 +01:00

19 lines
567 B
C#

namespace M6502.HarteTest
{
internal sealed class ProcessorTestSuite(string location)
{
public string Location { get; set; } = location;
public IEnumerable<OpcodeTestSuite> OpcodeTests()
{
foreach (var filename in Directory.EnumerateFiles(this.Location, "*.json"))
{
var fileInformation = new FileInfo(filename);
if (fileInformation.Length > 0)
{
yield return new OpcodeTestSuite(filename);
}
}
}
}