EightBitNet/Fuse/Tests.cs
Adrian Conlon 7192b5c095 Refactor non-CPU specific parts of the LR35902 fuse test code into it's own library
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
2019-07-21 10:34:44 +01:00

28 lines
651 B
C#

namespace Fuse
{
using System.Collections.Generic;
public class Tests
{
private readonly Lines lines;
public Dictionary<string, Test> Container { get; } = new Dictionary<string, Test>();
public Tests(string path) => this.lines = new Lines(path);
public void Read() => this.lines.Read();
public void Parse()
{
while (!this.lines.EndOfFile)
{
var test = new Test();
if (test.TryParse(this.lines))
{
this.Container.Add(test.Description, test);
}
}
}
}
}