public void HaveOneCardReturnsCardAsString() { var card = new Card(Rank.Ace, Suit.Clubs); var hand = new Hand(); hand.AddCard(card); Assert.AreEqual(hand.ToString(), card.ToString()); }
public void HaveTwoCardsReturnsTwoCommaSeparatedCardsInAscendingOrderAsString() { var card1 = new Card(Rank.Three, Suit.Clubs); var card2 = new Card(Rank.Two, Suit.Clubs); var hand = new Hand(); hand.AddCard(card1); hand.AddCard(card2); Assert.AreEqual(hand.ToString(), card2.ToString() + ", " + card1.ToString()); }