public void Parses_date() { var sut = JournalFileName.Parse("Journal.190217195123.01.log"); Assert.AreEqual(sut.StartDate, new DateTime(2019, 02, 17, 19, 51, 23)); }
public void Parses_filenumber() { var sut = JournalFileName.Parse("Journal.190217195123.01.log"); Assert.AreEqual(sut.FileNumber, 1); }
public void Rejects_incorrect_suffix() { Assert.IsNull(JournalFileName.Parse("Journal.190217195123.01.pog")); }