Example #1
0
 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);
 }
Example #2
0
 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);
 }