Esempio n. 1
0
 public void TestNextWorkingDaySat()
 {
     var expected = new DateTime(2006, 12, 18);
     var actual = new UKBankHoliday().NextWorkingDay(new DateTime(2006, 12, 16));
     Assert.AreEqual(expected, actual);
 }
Esempio n. 2
0
 public void TestRoyalWedding2011()
 {
     var isWeddingHoliday = new UKBankHoliday().IsBankHoliday(new DateTime(2011, 4, 29));
     Assert.IsTrue(isWeddingHoliday);
 }
Esempio n. 3
0
 public void TestNextWorkingDayAfterRoyalWedding2011()
 {
     var royalWedding = new DateTime(2011, 4, 29);
     var nextWorkingDay = new UKBankHoliday().NextWorkingDay(royalWedding);
     //next working day is Tuesday 3rd May (Monday 2nd is MayDay)
     var expected = new DateTime(2011, 5, 3);
     Assert.AreEqual(expected, nextWorkingDay);
 }
Esempio n. 4
0
 public void TestNextWorkingDayOverNewYear()
 {
     var expected = new DateTime(2007, 1, 2);
     var actual = new UKBankHoliday().NextWorkingDay(new DateTime(2006, 12, 30));
     Assert.AreEqual(expected, actual);
 }