From 6cb31fa16a0a1394f7ef003a588faad6b6ce3dd5 Mon Sep 17 00:00:00 2001 From: fdai2751 Date: Thu, 8 Feb 2024 19:50:53 +0100 Subject: [PATCH] Test: JunitTest Gameresumed to test --- src/test/java/pacmanTests/GameManagerTest.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/test/java/pacmanTests/GameManagerTest.java b/src/test/java/pacmanTests/GameManagerTest.java index fff3574..d82d9e2 100644 --- a/src/test/java/pacmanTests/GameManagerTest.java +++ b/src/test/java/pacmanTests/GameManagerTest.java @@ -61,6 +61,14 @@ class GameManagerTest { // assert assertThat(collision).isEqualTo(expected); } + + @Test + void testResumeGame() { + GameManager game = new GameManager(); + game.Unpause(); + assertFalse(game.isPaused); + } + @Test void testPauseGame() { GameManager game = new GameManager(); @@ -69,7 +77,6 @@ class GameManagerTest { game.Pause(); assertTrue(game.isPaused); } - @Test void GameManager_GostPlayerCollisionTest_DoesntDetectColliosion() {