Пример #1
0
        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
        }
Пример #2
0
 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);
 }
Пример #3
0
        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);
        }