From 54c7b81de905b9376bc2bc3a3ebf4a9e2c5ab6b8 Mon Sep 17 00:00:00 2001 From: fdai2751 Date: Wed, 7 Feb 2024 21:29:11 +0100 Subject: [PATCH] added the gunitTest for pause function in to gameManagerTest --- src/test/java/pacmanTests/GameManagerTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/pacmanTests/GameManagerTest.java b/src/test/java/pacmanTests/GameManagerTest.java index 183a89f..14cbd0c 100644 --- a/src/test/java/pacmanTests/GameManagerTest.java +++ b/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); - }*/ + } }