Beispiel #1
0
 public void WhenCalendarHasTwoNonWorkingDayOfWeekAndReturnsNonWorkingForThoseDays()
 {
     WorkingDatesCalendar argentineCalendar = new WorkingDatesCalendar();
     argentineCalendar.AddNonWorkingDayOfWeek(DayOfWeek.Saturday);
     argentineCalendar.AddNonWorkingDayOfWeek(DayOfWeek.Sunday);
     Assert.IsTrue(argentineCalendar.IsNonWorkingDate(someSaturday()));
     Assert.IsTrue(argentineCalendar.IsNonWorkingDate(someSunday()));
 }
Beispiel #2
0
 public void WhenCalendarHasANonWorkingDayOfWeekReturnsNonWorkingForThatDayOfWeekAndFalseForAnotherOne()
 {
     WorkingDatesCalendar argentineCalendar = new WorkingDatesCalendar();
     argentineCalendar.AddNonWorkingDayOfWeek(DayOfWeek.Sunday);
     Assert.IsFalse(argentineCalendar.IsNonWorkingDate(someSaturday()));
     Assert.IsTrue(argentineCalendar.IsNonWorkingDate(someSunday()));
 }
Beispiel #3
0
 public void WhenCalendarHasANonWorkingDayOfWeekReturnsItIsNotNonWorkingDayForOtherDay()
 {
     WorkingDatesCalendar argentineCalendar = new WorkingDatesCalendar();
     argentineCalendar.AddNonWorkingDayOfWeek(DayOfWeek.Sunday);
     Assert.IsFalse(argentineCalendar.IsNonWorkingDate(someMonday()));
 }