Example #1
0
 public void Test_AllLeapYearsBetween1900And2000()
 {
     var csObj = new CountingSundays();
     var LeapYearCount = 0;
     for (var i = 1900; i <= 2000; i++)
     {
         if (csObj.IsLeapYear(i)) LeapYearCount += 1;
     }
     Assert.AreEqual(25, LeapYearCount);
 }
Example #2
0
 public void Test_LeapYear1904()
 {
     var csObj = new CountingSundays();
     Assert.AreEqual(true, csObj.IsLeapYear(1904));
 }
Example #3
0
 public void Test_LeapYear1900()
 {
     var csObj = new CountingSundays();
     Assert.AreEqual(false, csObj.IsLeapYear(1900));
 }