public void ShouldReturnMinValueDateTimeWhenReadingEndTimeFromAnEmptyCell() { using (var report = new XlsReport(TestTimesheet)) { var readTime = report.ReadEndTime(new DateTime(2012, 12, 19)); Assert.That(readTime, Is.EqualTo(DateTime.MinValue)); } }
public void ShouldReturnTimeFromEndTimeCellWhenPassedARequestedEndTime() { var endTime = new DateTime(2012, 12, 20, 08, 15, 00); using (var report = new XlsReport(TestTimesheet)) { report.WriteEndTime(endTime); var readTime = report.ReadEndTime(new DateTime(2012, 12, 20)); Assert.That(readTime, Is.EqualTo(endTime)); } }