mirror of
https://github.com/MoleskiCoder/EightBitNet.git
synced 2026-04-24 02:17:47 +00:00
Refactor non-CPU specific parts of the LR35902 fuse test code into it's own library
Signed-off-by: Adrian Conlon <Adrian.conlon@gmail.com>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
namespace Fuse
|
||||
{
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
public class TestEvents
|
||||
{
|
||||
private readonly List<TestEvent> container = new List<TestEvent>();
|
||||
|
||||
public ReadOnlyCollection<TestEvent> 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user