Example #1
0
 public void Test1()
 {
     Assert.IsTrue(Year.IsLeap(1996));
 }
Example #2
0
 public void Test3()
 {
     Assert.IsFalse(Year.IsLeap(1900));
 }
Example #3
0
 public void Test4()
 {
     Assert.IsTrue(Year.IsLeap(2000));
 }
Example #4
0
 public void Test2()
 {
     Assert.IsFalse(Year.IsLeap(2001));
 }
Example #5
0
 public void Should_return_true_when_year_is_normal_leap_year()
 {
     Check.That(Year.IsLeap(1996)).IsTrue();
 }
Example #6
0
 public void Should_return_true_when_year_is_non_common_leap_year()
 {
     Check.That(Year.IsLeap(2000)).IsTrue();
 }
Example #7
0
 public void Should_return_false_when_year_is_atypical_common_year()
 {
     Check.That(Year.IsLeap(1900)).IsFalse();
 }
Example #8
0
 public void Should_return_false_when_year_is_common_year()
 {
     Check.That(Year.IsLeap(2001)).IsFalse();
 }