public void TestNewSouthWales2017(int month, int day, string name) { var holiday = new DateTime(2017, month, day); var holidayCalendar = new AustraliaPublicHoliday { State = AustraliaPublicHoliday.States.NSW }; var actual = holidayCalendar.IsPublicHoliday(holiday); Assert.IsTrue(actual, $"{holiday.ToString("D")} is not a holiday - should be {name}"); }
public void TestQueensland2017(int month, int day, string name) { //https://www.qld.gov.au/recreation/travel/holidays/public/ var holiday = new DateTime(2017, month, day); var holidayCalendar = new AustraliaPublicHoliday { State = AustraliaPublicHoliday.States.QLD }; var actual = holidayCalendar.IsPublicHoliday(holiday); Assert.IsTrue(actual, $"{holiday.ToString("D")} is not a holiday - should be {name}"); }