Пример #1
0
 public void EnsureHoursCalculationReturnsZeroIfEndIsAfterStart()
 {
     Assert.AreEqual(0, BabysittingRateCalculator.CalculateHours(DateTime.Parse("1/1/2016 10:00 PM"), DateTime.Parse("1/1/2016 5:45 PM")));
 }
Пример #2
0
 public void GivenAFractionalNumberOfHoursReturnTheWholeHours()
 {
     Assert.AreEqual(5, BabysittingRateCalculator.CalculateHours(DateTime.Parse("1/1/2016 12:00 PM"), DateTime.Parse("1/1/2016 5:45 PM")));
 }