Browse Source

added the gunitTest for pause function in to gameManagerTest

remotes/origin/playerRefactoring
fdai2751 11 months ago
parent
commit
54c7b81de9
  1. 8
      src/test/java/pacmanTests/GameManagerTest.java

8
src/test/java/pacmanTests/GameManagerTest.java

@ -89,7 +89,7 @@ class GameManagerTest {
assertThat(ghostPosition).isEqualTo(expectedPosition);
}
@Test
/*@Test
void GameManager_TogglePause_NotTogglePause() {
GameManager gameManager = new GameManager();
gameManager.isPaused = true;
@ -97,8 +97,8 @@ class GameManagerTest {
boolean pause = gameManager.isPaused;
boolean expected = false;
assertThat(pause).isEqualTo(expected);
}
/*@Test
}*/
@Test
void GameManager_Pause_NotPause() {
GameManager gameManager = new GameManager();
gameManager.isPaused = true;
@ -106,5 +106,5 @@ class GameManagerTest {
boolean pause = gameManager.isPaused;
boolean expected = true;
assertThat(pause).isEqualTo(expected);
}*/
}
}
Loading…
Cancel
Save