diff --git a/src/test/java/Gui/GameGuiTest.java b/src/test/java/Gui/GameGuiTest.java index f212d07..1d9f8e9 100644 --- a/src/test/java/Gui/GameGuiTest.java +++ b/src/test/java/Gui/GameGuiTest.java @@ -49,4 +49,13 @@ class GameGuiTest { gameGui.highScore(); assertEquals(expectedHighScore, gameGui.highScore); } + + @Test + public void testHighScoreNoNewScore() { + int expectedHighScore = 12; + gameGui.highScore = 12 ; + gameGui.questionNr = 3; + gameGui.highScore(); + assertEquals(expectedHighScore, gameGui.highScore); + } }