public void provide_custom_culture() { var customWorkingDayCultureInfo = new CustomWorkingDayCultureInfo(); var today = DateTime.Today; var next_friday = today.NextDayOfWeek(DayOfWeek.Friday); Assert.IsTrue(today.IsWorkingDay(customWorkingDayCultureInfo) == false); Assert.IsTrue(next_friday.IsWorkingDay(customWorkingDayCultureInfo) == false); }
public void provide_custom_culture() { var customWorkingDayCultureInfo = new CustomWorkingDayCultureInfo(); var today = DateTime.Today; var next_friday = today.NextDayOfWeek(DayOfWeek.Friday); Assert.IsTrue(today.IsWorkingDay(customWorkingDayCultureInfo) == false); Assert.IsTrue(today.IsHoliday(customWorkingDayCultureInfo)); Assert.IsTrue(next_friday.IsWorkingDay(customWorkingDayCultureInfo) == false); }