|
@ -54,11 +54,11 @@ class GameManagerTest { |
|
|
GameManager gameManager = new GameManager(); |
|
|
GameManager gameManager = new GameManager(); |
|
|
gameManager.player.position = gameManager.ghosts[0].position.Clone(); |
|
|
gameManager.player.position = gameManager.ghosts[0].position.Clone(); |
|
|
//act |
|
|
//act |
|
|
boolean colision = gameManager.GhostPlayerColisionTest(); |
|
|
|
|
|
|
|
|
boolean collision = gameManager.GhostPlayerColisionTest(); |
|
|
boolean expected = true; |
|
|
boolean expected = true; |
|
|
|
|
|
|
|
|
// assert |
|
|
// assert |
|
|
assertThat(colision).isEqualTo(expected); |
|
|
|
|
|
|
|
|
assertThat(collision).isEqualTo(expected); |
|
|
} |
|
|
} |
|
|
@Test |
|
|
@Test |
|
|
void GameManager_GostPlayerColisionTest_DoesntDetectColosion() { |
|
|
void GameManager_GostPlayerColisionTest_DoesntDetectColosion() { |
|
|