Exemplo 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));
 }
Exemplo 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));
 }
Exemplo 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));
 }