public void TestPublicHolidays() { var thanksgiving = new DateTime(1999, 11, 25); var result = new USAPublicHoliday().PublicHolidays(1999); Assert.AreEqual(10, result.Count); Assert.IsTrue(result.Contains(thanksgiving)); }
public void TestNextWorkingDay() { var thanksgiving = new DateTime(1999, 11, 25); var result = new USAPublicHoliday().NextWorkingDay(thanksgiving); Assert.AreEqual(new DateTime(1999, 11, 26), result); }
public void TestNextWorkingDayColumbus() { var result = new USAPublicHoliday().NextWorkingDay(new DateTime(2006, 10, 8)); Assert.AreEqual(new DateTime(2006, 10, 10), result); }
public void TestIsPublicHoliday() { var thanksgiving = new DateTime(1999, 11, 25); var result = new USAPublicHoliday().IsPublicHoliday(thanksgiving); Assert.IsTrue(result); }