Browse Source

Test.lastPlayedCard

main
fdai7906 11 months ago
parent
commit
4fb4c61b53
  1. 21
      src/test/java/de/hsfulda/onses/GameTest.java

21
src/test/java/de/hsfulda/onses/GameTest.java

@ -0,0 +1,21 @@
package de.hsfulda.onses;
import de.hsfulda.onses.models.Card;
import de.hsfulda.onses.models.Game;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
public class GameTest {
@Test
@DisplayName("lastPlayedCard")
public void lastPlayedCard() {
Game game = new Game();
Card card = new Card().setColor(Card.Color.RED).setValue(Card.Value.EIGHT);
Card answer = card;
game.setLastPlayedCard(card);
assertEquals(card, answer);
}
}
Loading…
Cancel
Save