public void ShouldReturnMinValueDateTimeWhenReadingStartTimeFromAnEmptyCell() { using (var report = new XlsReport(TestTimesheet)) { var readTime = report.ReadStartTime(new DateTime(2012, 12, 19)); Assert.That(readTime, Is.EqualTo(DateTime.MinValue)); } }
public void ShouldReturnTimeFromStartTimeCellWhenPassedARequestedStartTime() { var startTime = new DateTime(2012, 12, 20, 08, 15, 00); using (var report = new XlsReport(TestTimesheet)) { report.WriteStartTime(startTime); var readTime = report.ReadStartTime(new DateTime(2012, 12, 20)); Assert.That(readTime, Is.EqualTo(startTime)); } }