Esempio n. 1
0
 @Test
 public void shouldIncreaseAgeBy99At1AD() {
   // The game is freshly created, so it is currently turn 1
   assertThat("The new age should be 50AD", agingBetaStrategy.age(1), is(50));
 }
Esempio n. 2
0
 @Test
 public void shouldIncreaseAgeBy1At1990AD() {
   // The game is freshly created, so it is currently turn 1
   assertThat("The new age should be 1991", agingBetaStrategy.age(1990), is(1991));
 }
Esempio n. 3
0
 @Test
 public void shouldIncreaseAgeBy99At100BC() {
   // The game is freshly created, so it is currently turn 1
   assertThat("The new age should be 1BC", agingBetaStrategy.age(-100), is(-1));
 }