public void TestHolidays2017Lists() { var holidayCalendar = new AustraliaPublicHoliday(); //ALL states - just 7 national var hols = holidayCalendar.PublicHolidays(2017); var holNames = holidayCalendar.PublicHolidayNames(2017); //New Year's Day, Australia Day, Good Friday, Easter Monday, Anzac Day, Christmas Day and Boxing Day Assert.IsTrue(7 == hols.Count, "Should be 7 holidays in 2017"); Assert.IsTrue(holNames.Count == hols.Count, "Names and holiday list are same"); }
public void TestAustralianCapitalTerritory2017Lists() { var holidayCalendar = new AustraliaPublicHoliday { State = AustraliaPublicHoliday.States.ACT }; var hols = holidayCalendar.PublicHolidays(2017); var holNames = holidayCalendar.PublicHolidayNames(2017); Assert.IsTrue(11 == hols.Count, "Should be 11 holidays in 2017"); Assert.IsTrue(holNames.Count == hols.Count, "Names and holiday list are same"); }
public void TestAustralianNSW2016Lists() { var holidayCalendar = new AustraliaPublicHoliday { State = AustraliaPublicHoliday.States.NSW }; var hols = holidayCalendar.PublicHolidays(2016); var holNames = holidayCalendar.PublicHolidayNames(2016); Assert.IsTrue(9 == hols.Count, "Should be 9 holidays in 2016"); Assert.IsTrue(holNames.Count == hols.Count, "Names and holiday list are same"); }