//
// Copyright (c) Adrian Conlon. All rights reserved.
//
namespace Fuse
{
using System.Collections.Generic;
public class Tests
where T : Fuse.IRegisterState, new()
{
private readonly Lines lines;
public Tests(string path) => this.lines = new Lines(path);
public Dictionary> Container { get; } = new Dictionary>();
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);
}
}
}
}
}