Esempio n. 1
0
        public void Parses_date()
        {
            var sut = JournalFileName.Parse("Journal.190217195123.01.log");

            Assert.AreEqual(sut.StartDate, new DateTime(2019, 02, 17, 19, 51, 23));
        }
Esempio n. 2
0
        public void Parses_filenumber()
        {
            var sut = JournalFileName.Parse("Journal.190217195123.01.log");

            Assert.AreEqual(sut.FileNumber, 1);
        }
Esempio n. 3
0
 public void Rejects_incorrect_suffix()
 {
     Assert.IsNull(JournalFileName.Parse("Journal.190217195123.01.pog"));
 }