Browse Source

created test for checking íf current Question variable is incremented

master
Ozan-Can Ekinci 2 years ago
parent
commit
13956db449
  1. 6
      src/test/java/Gui/GameGuiTest.java

6
src/test/java/Gui/GameGuiTest.java

@ -74,6 +74,12 @@ class GameGuiTest {
GameGui.currentQuestion = 1; GameGui.currentQuestion = 1;
gameGui.createShowQuestion(1 ,file.getAbsolutePath()); gameGui.createShowQuestion(1 ,file.getAbsolutePath());
assertEquals("Frage 1: 1 Euro", GameGui.CurrentQuestionNrLabel.getText()); 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);
} }
} }
Loading…
Cancel
Save