예제 #1
0
 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));
 }
예제 #2
0
 public void TestNextWorkingDay()
 {
     var thanksgiving = new DateTime(1999, 11, 25);
     var result = new USAPublicHoliday().NextWorkingDay(thanksgiving);
     Assert.AreEqual(new DateTime(1999, 11, 26), result);
 }
예제 #3
0
 public void TestNextWorkingDayColumbus()
 {
     var result = new USAPublicHoliday().NextWorkingDay(new DateTime(2006, 10, 8));
     Assert.AreEqual(new DateTime(2006, 10, 10), result);
 }
예제 #4
0
 public void TestIsPublicHoliday()
 {
     var thanksgiving = new DateTime(1999, 11, 25);
     var result = new USAPublicHoliday().IsPublicHoliday(thanksgiving);
     Assert.IsTrue(result);
 }