@Test public void testShuffleDeck() { // Arrange Deck unshuffled = new EnDeck(); Deck shuffeled = new EnDeck(); // Act unshuffled.build(); shuffeled.build(); shuffeled.shuffle(); // Assert assertNotEquals(unshuffled.cards, shuffeled.cards); }
@Test public void testBuildDeck() { // Arrange Deck d = new EnDeck(); // Act d.build(); // Assert assertNotEquals(null, d.cards); }
@Test public void testDrawCardFromDeck() { // Arrange Deck d = new EnDeck(); Card cRec = null; // Act d.build(); cRec = d.deal(); // Assert assertNotEquals(null, cRec); }