You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
554 B

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.*;
class CardGameTest {
CardGame cardGame;
@org.junit.jupiter.api.Test
@BeforeEach
void setUp() {
cardGame = new CardGame(10, 2);
}
@Test
void createDeck() {
assertEquals(2, cardGame.players.length);
for (int i = 0; i < 2; i++) {
assertEquals(20, cardGame.players[i].drawPile.count());
}
}
@Test
void play() {
cardGame.play();
}
}