Esempio n. 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);
 }
Esempio n. 2
0
 public void PokerCardConstructorRuns()
 {
     var card = new PokerCard(PokerCard.Ranks.Ace, PokerCard.Suits.Spades);
     Assert.AreNotEqual(card, null);
 }
Esempio n. 3
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);
 }