From b17564b07d84c3a5b6cb225c5f3fa620ffb9df9b Mon Sep 17 00:00:00 2001 From: fdai7793 Date: Wed, 7 Feb 2024 16:49:45 +0100 Subject: [PATCH] Test.CheckIfCardsInDrawCardDeckAreFaceDown --- src/test/java/de/hsfulda/onses/GameServiceTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/test/java/de/hsfulda/onses/GameServiceTest.java b/src/test/java/de/hsfulda/onses/GameServiceTest.java index de47a5e..acefad7 100644 --- a/src/test/java/de/hsfulda/onses/GameServiceTest.java +++ b/src/test/java/de/hsfulda/onses/GameServiceTest.java @@ -474,4 +474,14 @@ public class GameServiceTest { assertTrue(answer); } + + @Test + @DisplayName("CheckIfCardsInDrawCardDeckAreFaceDown") + public void CheckIfCardsInDrawCardDeckAreFaceDown() { + GameService gameService = new GameService(); + + for (int i = 0; i < gameService.getGame().getDrawCardDeck().size(); i++) { + assertTrue(gameService.getGame().getDrawCardDeck().get(i).isFacedown()); + } + } }