Exemplo n.º 1
0
        public void It_returns_a_list_of_LogEntries_for_the_entire_log()
        {
            var parser = new WinTaskParser(GetSource());
            IList <LogEntry> entries = parser.Parse(_logData);

            Assert.IsTrue(entries.Count.Equals(7));
        }
Exemplo n.º 2
0
        public void It_notifies_for_each_line_parsed()
        {
            var parser = new WinTaskParser(GetSource());
            var lines  = 0;

            parser.LineParsed += (o, e) => lines += 1;
            parser.Parse(_logData);

            Assert.IsTrue(lines == 7);
        }