|
|
@ -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); |
|
|
|
} |
|
|
|
} |