From b90ccb83b5a773db0aedf8f537f8b30cf05d4d3d Mon Sep 17 00:00:00 2001 From: fdai2751 Date: Thu, 8 Feb 2024 19:35:52 +0100 Subject: [PATCH] =?UTF-8?q?Test:=20JunitTest=20f=C3=BCr=20pause=20function?= =?UTF-8?q?=20in=20GameManager?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/java/pacmanTests/GameManagerTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/test/java/pacmanTests/GameManagerTest.java b/src/test/java/pacmanTests/GameManagerTest.java index eb24fed..fff3574 100644 --- a/src/test/java/pacmanTests/GameManagerTest.java +++ b/src/test/java/pacmanTests/GameManagerTest.java @@ -46,6 +46,7 @@ class GameManagerTest { // assert assertThat(initialVptOutput).isNotEqualTo(updatedVptOutput); } + @Test void GameManager_GostPlayerColisionTest_DetectsColosion() { @@ -60,6 +61,16 @@ class GameManagerTest { // assert assertThat(collision).isEqualTo(expected); } + @Test + void testPauseGame() { + GameManager game = new GameManager(); + + assertFalse(game.isPaused); + game.Pause(); + assertTrue(game.isPaused); + } + + @Test void GameManager_GostPlayerCollisionTest_DoesntDetectColliosion() {