diff --git a/src/test/java/Gui/GameGuiTest.java b/src/test/java/Gui/GameGuiTest.java index a91aa6a..aa7ebcf 100644 --- a/src/test/java/Gui/GameGuiTest.java +++ b/src/test/java/Gui/GameGuiTest.java @@ -74,6 +74,12 @@ class GameGuiTest { GameGui.currentQuestion = 1; gameGui.createShowQuestion(1 ,file.getAbsolutePath()); assertEquals("Frage 1: 1 Euro", GameGui.CurrentQuestionNrLabel.getText()); - + } + + @Test + public void testCreateShowQuestionCounter() { + gameGui.currentQuestion = 1; + gameGui.createShowQuestion(1, "QandA/Money.txt"); + assertEquals(2, gameGui.currentQuestion); } }