mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2025-09-23 06:24:28 +00:00
20 lines
569 B
C#
20 lines
569 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);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|