コード例 #1
0
 @Test
 public void shouldGive1980() {
   assertEquals("Age should be 1980", 1980, AS.calculateAge(1979));
 }
コード例 #2
0
 @Test
 public void shouldGiveMinus2000ForAgeMinus2100() {
   assertEquals("Age now should be -2000, comming from -2100", -2000, AS.calculateAge(-2100));
 }