mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-06-02 01:41:28 +00:00
7192b5c095
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
28 lines
651 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|