コード例 #1
0
 @Test
 public void isLeapYear_forNumberDivisibleByFour_true() {
   LeapYear LeapYear = new LeapYear();
   assertEquals(true, LeapYear.isLeapYear(2012));
 }
コード例 #2
0
 @Test
 public void isLeapYear_forMultiplesOfOneHundred_false() {
   LeapYear leapYear = new LeapYear();
   assertEquals(false, leapYear.isLeapYear(1900));
 }
コード例 #3
0
 @Test
 public void isLeapYear_forMultiplesOfFourHundred_true() {
   LeapYear leapYear = new LeapYear();
   assertEquals(true, leapYear.isLeapYear(2000));
 }
コード例 #4
0
 @Test
 public void isLeapYear_forNumberDivisibleByFour_false() {
   LeapYear LeapYear = new LeapYear();
   assertEquals(false, LeapYear.isLeapYear(1999));
 }