diff --git a/src/test/java/game/loadNextQuestionTest.java b/src/test/java/game/loadNextQuestionTest.java index 33d613c..f23ecb6 100644 --- a/src/test/java/game/loadNextQuestionTest.java +++ b/src/test/java/game/loadNextQuestionTest.java @@ -33,5 +33,18 @@ class loadNextQuestionTest { assertEquals(1, gameGui.questionNr); } + + @Test + public void testWrongAnswer() { + //arrange + gameGui.questionNr = 0; + loadNextQuestion loadNextQuestion = new loadNextQuestion(); + runGame.splitAns = new String[] {"option1", "option2", "option3", "option4", "3"}; + //act + gameGui.AnswersBtn1.doClick(); + //assert + assertEquals(0, gameGui.questionNr); + + } } \ No newline at end of file