|
@ -70,9 +70,10 @@ class GameManagerTest { |
|
|
GameManager game = new GameManager(); |
|
|
GameManager game = new GameManager(); |
|
|
|
|
|
|
|
|
game.score = 100; |
|
|
game.score = 100; |
|
|
|
|
|
|
|
|
|
|
|
for(int i = 0;i < 3; i++) { |
|
|
game.handleGhostCollision(); |
|
|
game.handleGhostCollision(); |
|
|
game.handleGhostCollision(); |
|
|
|
|
|
game.handleGhostCollision(); |
|
|
|
|
|
|
|
|
} |
|
|
int expectedScore = 0; |
|
|
int expectedScore = 0; |
|
|
assertThat(game.score).isEqualTo(expectedScore); |
|
|
assertThat(game.score).isEqualTo(expectedScore); |
|
|
} |
|
|
} |
|
|