Browse Source

Test.CheckIfCardsMovedToDrawCardDeckWillBeFaceDown

main
fdai7793 11 months ago
parent
commit
1d3a241549
  1. 13
      src/test/java/de/hsfulda/onses/GameServiceTest.java

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

@ -521,4 +521,17 @@ public class GameServiceTest {
assertFalse(gameService.getGame().getLastPlayedCard().isFacedown()); 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());
}
} }
Loading…
Cancel
Save