diff --git a/src/test/java/de/hsfulda/onses/GameServiceTest.java b/src/test/java/de/hsfulda/onses/GameServiceTest.java index a27b039..161d8dc 100644 --- a/src/test/java/de/hsfulda/onses/GameServiceTest.java +++ b/src/test/java/de/hsfulda/onses/GameServiceTest.java @@ -521,4 +521,17 @@ public class GameServiceTest { assertFalse(gameService.getGame().getLastPlayedCard().isFacedown()); } + + @Test + @DisplayName("CheckIfCardsMovedToDrawCardDeckWillBeFaceDown") + public void CheckIfCardsMovedToDrawCardDeckWillBeFaceDown() { + GameService gameService = new GameService(); + + Card card = new Card().setColor(Card.Color.GREEN).setValue(Card.Value.FOUR); + + gameService.getGame().setLastPlayedCard(card); + gameService.addLastPlayedCardToDrawCardDeck(); + + assertTrue(gameService.getGame().getDrawCardDeck().getLast().isFacedown()); + } }