Browse Source

Test.DrawCardDeckTest

main
fdai7906 11 months ago
parent
commit
96370f47c7
  1. 14
      src/test/java/de/hsfulda/onses/GameServiceTest.java

14
src/test/java/de/hsfulda/onses/GameServiceTest.java

@ -245,4 +245,18 @@ public class GameServiceTest {
}
@Test
@DisplayName("DrawCardDeckTest")
public void DrawCardDeckTest ()
{
GameService gameService = new GameService();
int before = gameService.getGame().getDrawCardDeck().size();
gameService.drawCard(4);
int after = gameService.getGame().getDrawCardDeck().size();
int expected = 4;
int answer = before - after;
assertEquals(expected, answer);
}
}
Loading…
Cancel
Save