Beispiel #1
0
 public void IsNonWorkingDay_GivenAHolidayAndPassDifferentDate_ReturnsFalse()
 {
     var policy = new HolidayPolicy();
     policy.AddHoliday(new DateTime(2013, 5, 1));
     Assert.That(policy.IsNonWorkingDay(new DateTime(2013, 5, 2)), Is.EqualTo(false));
 }
Beispiel #2
0
 public void IsNonWorkingDay_GivenAHolidayAndPassSameDate_ReturnsTrue()
 {
     var policy = new HolidayPolicy();
     policy.AddHoliday(new DateTime(2013, 5, 1));
     Assert.That(policy.IsNonWorkingDay(new DateTime(2013, 5, 1)), Is.EqualTo(true));
 }