From 135ff27590d6b2b1be6e1a669919782652d4d5f7 Mon Sep 17 00:00:00 2001 From: fdai7793 Date: Wed, 7 Feb 2024 16:51:56 +0100 Subject: [PATCH] Test.CheckIfCardsInPlayerDeckAreFaceUp --- 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 acefad7..02dff9b 100644 --- a/src/test/java/de/hsfulda/onses/GameServiceTest.java +++ b/src/test/java/de/hsfulda/onses/GameServiceTest.java @@ -484,4 +484,14 @@ public class GameServiceTest { assertTrue(gameService.getGame().getDrawCardDeck().get(i).isFacedown()); } } + + @Test + @DisplayName("CheckIfCardsInPlayerDeckAreFaceUp") + public void CheckIfCardsInPlayerDeckAreFaceUp() { + GameService gameService = new GameService(); + + for (int i = 0; i < gameService.getGame().getPlayerService().getPlayerList().getFirst().getPlayerDeck().size(); i++) { + assertFalse(gameService.getGame().getPlayerService().getPlayerList().getFirst().getPlayerDeck().get(i).isFacedown()); + } + } }