public void PokerCardCompareLess() { var bigcard = new PokerCard(PokerCard.Ranks.Ace, PokerCard.Suits.Spades); var smallcard = new PokerCard(PokerCard.Ranks.Two, PokerCard.Suits.Diamonds); Assert.IsTrue(smallcard.CompareTo(bigcard) < 0); }
public void PokerCardConstructorRuns() { var card = new PokerCard(PokerCard.Ranks.Ace, PokerCard.Suits.Spades); Assert.AreNotEqual(card, null); }
public void PokerCardCompareEqual() { var card = new PokerCard(PokerCard.Ranks.Ace, PokerCard.Suits.Spades); var othercard = new PokerCard(PokerCard.Ranks.Ace, PokerCard.Suits.Diamonds); Assert.IsTrue(card.CompareTo(othercard) == 0); }