Browse Source

Test: JunitTest Gameresumed to test

remotes/origin/ghostsbehaviour
fdai2751 11 months ago
parent
commit
6cb31fa16a
  1. 9
      src/test/java/pacmanTests/GameManagerTest.java

9
src/test/java/pacmanTests/GameManagerTest.java

@ -61,6 +61,14 @@ class GameManagerTest {
// assert // assert
assertThat(collision).isEqualTo(expected); assertThat(collision).isEqualTo(expected);
} }
@Test
void testResumeGame() {
GameManager game = new GameManager();
game.Unpause();
assertFalse(game.isPaused);
}
@Test @Test
void testPauseGame() { void testPauseGame() {
GameManager game = new GameManager(); GameManager game = new GameManager();
@ -70,7 +78,6 @@ class GameManagerTest {
assertTrue(game.isPaused); assertTrue(game.isPaused);
} }
@Test @Test
void GameManager_GostPlayerCollisionTest_DoesntDetectColliosion() { void GameManager_GostPlayerCollisionTest_DoesntDetectColliosion() {

Loading…
Cancel
Save