public void DetectHighCard() { PokerHand testHand = new PokerHand("2S 4H 6C 8D TS"); Assert.AreEqual(HandType.High_Card, testHand.GetHandType()); }
public void DetectTwoPair() { PokerHand testHand = new PokerHand("2S 2H 6C 6D 7S"); Assert.AreEqual(HandType.Two_Pair, testHand.GetHandType()); }
public void DetectPair() { PokerHand testHand = new PokerHand("2S 2H 6C 7D 9S"); Assert.AreEqual(HandType.Pair, testHand.GetHandType()); }
public void DetectFullHouse() { PokerHand testHand = new PokerHand("2S 2H 2C 6D 6S"); Assert.AreEqual(HandType.Full_House, testHand.GetHandType()); }
public void DetectThreeOfAKind() { PokerHand testHand = new PokerHand("2S 2H 2C 6D 7S"); Assert.AreEqual(HandType.Three_Of_A_Kind, testHand.GetHandType()); }
public void DetectStraightFlush() { PokerHand testHand = new PokerHand("2S 3S 4S 5S 6S"); Assert.AreEqual(HandType.Straight_Flush, testHand.GetHandType()); }
public void DetectFourOfAKind() { PokerHand testHand = new PokerHand("2S 2H 2C 2D 6S"); Assert.AreEqual(HandType.Four_Of_A_Kind, testHand.GetHandType()); }
public void RejectStraightAceLowWhenOffByOne() { PokerHand testHand = new PokerHand("AS 2S 3H 4C 6D"); Assert.AreEqual(HandType.High_Card, testHand.GetHandType()); }
public void DetectFlush() { PokerHand testHand = new PokerHand("2S 3S 4S KS 6S"); Assert.AreEqual(HandType.Flush, testHand.GetHandType()); }
public void DetectStraightAceHigh() { PokerHand testHand = new PokerHand("TS JH QC KD AH"); Assert.AreEqual(HandType.Straight, testHand.GetHandType()); }
public void DetectStraightAceLow() { PokerHand testHand = new PokerHand("AS 2S 3H 4C 5D"); Assert.AreEqual(HandType.Straight, testHand.GetHandType()); }
public void DetectStraight9() { PokerHand testHand = new PokerHand("QS KH AC TD JH"); Assert.AreEqual(HandType.Straight, testHand.GetHandType()); }
public void DetectStraight5() { PokerHand testHand = new PokerHand("7S 8H 9C TD 6H"); Assert.AreEqual(HandType.Straight, testHand.GetHandType()); }
public void DetectStraight1() { PokerHand testHand = new PokerHand("2S 3H 4C 5D 6H"); Assert.AreEqual(HandType.Straight, testHand.GetHandType()); }
public void DetectRoyalFlushOfSpades() { PokerHand testHand = new PokerHand("AS TS QS JS KS"); Assert.AreEqual(HandType.Royal_Flush, testHand.GetHandType()); }
public void DetectRoyalFlushOfHearts() { PokerHand testHand = new PokerHand("AH TH QH JH KH"); Assert.AreEqual(HandType.Royal_Flush, testHand.GetHandType()); }