コード例 #1
0
 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));
     }
 }
コード例 #2
0
        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));
            }
        }