public void It_notifies_that_parsing_has_ended() { var parser = new TestBaseParser(GetUnparsedSource()); var listeners = new List <IParseListener>(); var wasCalled = false; var aggregator = new Blender(parser, listeners, _logData); aggregator.ParseEnded += (o, e) => wasCalled = true; aggregator.Parse(); Assert.IsTrue(wasCalled); }
public void It_notifies_when_the_log_is_not_parsed() { var parser = new TestBaseParser(GetParsedSource()); var listeners = new List <IParseListener>(); var wasCalled = false; var aggregator = new Blender(parser, listeners, _logData); aggregator.NoParse += (o, e) => wasCalled = true; aggregator.Parse(); Assert.IsTrue(wasCalled); }