//
// Copyright (c) Adrian Conlon. All rights reserved.
//
namespace Fuse
{
using System.Collections.Generic;
using System.Collections.ObjectModel;
public class TestEvents
{
private readonly List container = new List();
public ReadOnlyCollection Container => this.container.AsReadOnly();
public void Parse(Lines lines)
{
var success = false;
do
{
var e = new TestEvent();
success = e.TryParse(lines);
if (success)
{
this.container.Add(e);
}
}
while (success);
}
}
}