mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2024-11-18 17:05:22 +00:00
8dea5746c4
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
31 lines
775 B
C#
31 lines
775 B
C#
// <copyright file="Tests.cs" company="Adrian Conlon">
|
|
// Copyright (c) Adrian Conlon. All rights reserved.
|
|
// </copyright>
|
|
namespace Fuse
|
|
{
|
|
using System.Collections.Generic;
|
|
|
|
public class Tests
|
|
{
|
|
private readonly Lines lines;
|
|
|
|
public Tests(string path) => this.lines = new Lines(path);
|
|
|
|
public Dictionary<string, Test> Container { get; } = new Dictionary<string, Test>();
|
|
|
|
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);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|