public void AllowForNullCreateAction() { var parser = new LineParserFactory(); parser.AddParser(new ZoneParser(), null); parser.ParseLine(new LogDatum("[Sat Mar 30 10:42:39 2019] You have entered Arthicrex.")); // If the above line doesn't throw an exception, this test passes }
public ParserTestBase() { _parser.AddParser(_hitParser, null); _parser.AddParser(_missParser, null); _parser.AddParser(_healParser, null); _parser.AddParser(_killParser, null); _parser.AddParser(_whoParser, null); _parser.AddParser(_zoneParser, null); }
private LineParserFactory CreateLineParser(YouResolver youAre) { var parser = new LineParserFactory(); parser.AddParser(new HitParser(youAre)); parser.AddParser(new MissParser(youAre)); parser.AddParser(new HealParser(youAre)); parser.AddParser(new KillParser(youAre)); parser.AddParser(new WhoParser(youAre)); parser.AddParser(new ZoneParser()); return(parser); }