Beispiel #1
0
 public void ThirdWeekend()
 {
     Program2.month      = 1;
     Program2.DayOfMonth = 1;
     Program2.DayOfWeek  = Program2.DayInWeek(2018);
     Assert.AreEqual((16, 1), Program2.NumOfBonusWeekend(3, 2018));
 }
Beispiel #2
0
 public void NewMonth()
 {
     Program2.DayOfMonth = 32;
     Program2.month      = 1;
     Program2.DayInWeek(2018);
     Assert.AreEqual(1, Program2.DayOfMonth);
     Assert.AreEqual(2, Program2.month);
 }
Beispiel #3
0
 public void YearExceptionTest1()
 {
     Assert.ThrowsException <System.Exception>(() => Program2.DayInWeek(1901));
 }
Beispiel #4
0
 public void NoWeekendWithThisNumber()
 {
     Program2.month      = 12;
     Program2.DayOfMonth = 32;
     Assert.AreEqual(0, Program2.DayInWeek(2018));
 }