Browse Source

created test for cheching same highscore

master
Ozan-Can Ekinci 2 years ago
parent
commit
bece8b573f
  1. 8
      src/test/java/Gui/GameGuiTest.java

8
src/test/java/Gui/GameGuiTest.java

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