Beispiel #1
0
        public void RegularEntryTest()
        {
            var parser = new DbInstallEntryParser();
            var entry  = parser.Parse(RegularEntry);

            Assert.That(entry.TimeCreated, Is.EqualTo(new DateTime(2016, 11, 23, 16, 20, 16, 48)));

            entry = parser.Parse(RegularEntry1);
            Assert.That(entry.TimeCreated, Is.EqualTo(new DateTime(2016, 11, 08, 10, 58, 30, 636)));
        }
Beispiel #2
0
        public void ParseErrorTest()
        {
            var parser = new DbInstallEntryParser();
            var entry  = parser.Parse(NotParsebleEntry);

            Assert.That(entry.IsParseError, Is.True, "Has to have 'IsParseError' set to true");
            Assert.That(entry.FullText, Is.EqualTo(NotParsebleEntry));
        }