|
|
@ -41,4 +41,12 @@ class GameGuiTest { |
|
|
|
assertEquals(expectedHighScore, gameGui.highScore); |
|
|
|
} |
|
|
|
|
|
|
|
@Test |
|
|
|
public void testHighScoreSameScore() { |
|
|
|
int expectedHighScore = 4; |
|
|
|
gameGui.highScore = 4; |
|
|
|
gameGui.questionNr = 4; |
|
|
|
gameGui.highScore(); |
|
|
|
assertEquals(expectedHighScore, gameGui.highScore); |
|
|
|
} |
|
|
|
} |