mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-03-11 05:41:49 +00:00
23 lines
683 B
C#
23 lines
683 B
C#
namespace Z80.HarteTest
|
|
{
|
|
internal sealed class ProcessorTestSuite(string location)
|
|
{
|
|
public string Location { get; set; } = location;
|
|
|
|
public IEnumerable<OpcodeTestSuite> OpcodeTests()
|
|
{
|
|
//var pattern = "dd 66.json";
|
|
//var pattern = "06.json";
|
|
var pattern = "*.json";
|
|
foreach (var filename in Directory.EnumerateFiles(this.Location, pattern))
|
|
{
|
|
var fileInformation = new FileInfo(filename);
|
|
if (fileInformation.Length > 0)
|
|
{
|
|
yield return new OpcodeTestSuite(filename);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|