From dfe8814ac67862dd53b57952b4931f8094f2b63d Mon Sep 17 00:00:00 2001 From: fdai7793 Date: Sat, 3 Feb 2024 15:30:48 +0100 Subject: [PATCH] Test.CheckFirstCardIsNotBlack --- src/test/java/de/hsfulda/onses/GameServiceTest.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/test/java/de/hsfulda/onses/GameServiceTest.java b/src/test/java/de/hsfulda/onses/GameServiceTest.java index 91d2c82..71f2e14 100644 --- a/src/test/java/de/hsfulda/onses/GameServiceTest.java +++ b/src/test/java/de/hsfulda/onses/GameServiceTest.java @@ -287,4 +287,16 @@ public class GameServiceTest { assertTrue(answer); } + + @Test + @DisplayName("CheckFirstCardIsNotBlack") + public void CheckFirstCardIsNotBlack () + { + GameService gameService = new GameService(); + Card card = gameService.getGame().getLastPlayedCard(); + + boolean answer = card.getColor() != Card.Color.BLACK; + + assertTrue(answer); + } }