public void secondCardDealtIs1() { deck.dealCard(); Card actual = deck.dealCard(); Card expected = new Card(1); Assert.AreEqual(expected, actual); }
private bool isCardEqual(Card card) { if (isSameRankAndSuit(card)) { return true; } return false; }
private bool isSameRankAndSuit(Card card) { return (this.Rank == card.Rank && this.Suit == card.Suit); }
public void addCardToHand(Card card) { Hand.addCard(card); }
public void addCard(Card card) { CardsInDeck.Add(card); }
public void firstCardDealtIs0() { Card actual = deck.dealCard(); Card expected = new Card(0); Assert.AreEqual(expected, actual); }
public void cardsCanBeEqual() { Card a = new Card(5); Card b = new Card(5); Assert.IsTrue(a.Equals(b)); }
public void twoOfClubsHasRankOfTwo() { Card twoOfClubs = new Card(1); CardRank rank = twoOfClubs.Rank; Assert.AreEqual(CardRank.TWO, rank); }
public void cardValueBelow0ThrowsException() { Card card = new Card(-1); }
public void cardValueAbove51ThrowsException() { Card card = new Card(52); }