Browse Source

Test.CheckFirstCardIsSet

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

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

@ -276,4 +276,15 @@ public class GameServiceTest {
assertEquals(expected, counter);
}
@Test
@DisplayName("CheckFirstCardIsSet")
public void CheckFirstCardIsSet ()
{
GameService gameService = new GameService();
Card card = gameService.getGame().getLastPlayedCard();
boolean answer = card != null;
assertTrue(answer);
}
}
Loading…
Cancel
Save