Example #1
0
        public void ParseRaw_MalformedLines(ParseExpectation expectation)
        {
            var expected = expectation.ExpectedResult;

            var parser = new Parser();
            var parsed = parser.ParseRaw(expectation.Input);

            Assert.That(parsed, Is.Null);
        }
Example #2
0
        public void ParseRaw_CorrectLines(ParseExpectation expectation)
        {
            var expected = expectation.ExpectedResult;

            var parser = new Parser();
            var parsed = parser.ParseRaw(expectation.Input);

            Assert.That(parsed, Is.Not.Null);
            Assert.That(parsed.RawArgs, Is.EqualTo(expected.RawArgs));
            Assert.That(parsed.RawCommand, Is.EqualTo(expected.RawCommand));
            Assert.That(parsed.RawDb, Is.EqualTo(expected.RawDb));
            Assert.That(parsed.RawLine, Is.EqualTo(expected.RawLine));
            Assert.That(parsed.RawTimeStamp, Is.EqualTo(expected.RawTimeStamp));
        }