mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-07-15 01:29:08 +00:00
a9a03d946a
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
29 lines
676 B
C#
29 lines
676 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();
|
|
test.Parse(this.lines);
|
|
if (test.Valid)
|
|
{
|
|
this.Container.Add(test.Description, test);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|