예제 #1
0
        public void DetectHighCard()
        {
            PokerHand testHand = new PokerHand("2S 4H 6C 8D TS");

            Assert.AreEqual(HandType.High_Card, testHand.GetHandType());
        }
예제 #2
0
        public void DetectTwoPair()
        {
            PokerHand testHand = new PokerHand("2S 2H 6C 6D 7S");

            Assert.AreEqual(HandType.Two_Pair, testHand.GetHandType());
        }
예제 #3
0
        public void DetectPair()
        {
            PokerHand testHand = new PokerHand("2S 2H 6C 7D 9S");

            Assert.AreEqual(HandType.Pair, testHand.GetHandType());
        }
예제 #4
0
        public void DetectFullHouse()
        {
            PokerHand testHand = new PokerHand("2S 2H 2C 6D 6S");

            Assert.AreEqual(HandType.Full_House, testHand.GetHandType());
        }
예제 #5
0
        public void DetectThreeOfAKind()
        {
            PokerHand testHand = new PokerHand("2S 2H 2C 6D 7S");

            Assert.AreEqual(HandType.Three_Of_A_Kind, testHand.GetHandType());
        }
예제 #6
0
        public void DetectStraightFlush()
        {
            PokerHand testHand = new PokerHand("2S 3S 4S 5S 6S");

            Assert.AreEqual(HandType.Straight_Flush, testHand.GetHandType());
        }
예제 #7
0
        public void DetectFourOfAKind()
        {
            PokerHand testHand = new PokerHand("2S 2H 2C 2D 6S");

            Assert.AreEqual(HandType.Four_Of_A_Kind, testHand.GetHandType());
        }
예제 #8
0
        public void RejectStraightAceLowWhenOffByOne()
        {
            PokerHand testHand = new PokerHand("AS 2S 3H 4C 6D");

            Assert.AreEqual(HandType.High_Card, testHand.GetHandType());
        }
예제 #9
0
        public void DetectFlush()
        {
            PokerHand testHand = new PokerHand("2S 3S 4S KS 6S");

            Assert.AreEqual(HandType.Flush, testHand.GetHandType());
        }
예제 #10
0
        public void DetectStraightAceHigh()
        {
            PokerHand testHand = new PokerHand("TS JH QC KD AH");

            Assert.AreEqual(HandType.Straight, testHand.GetHandType());
        }
예제 #11
0
        public void DetectStraightAceLow()
        {
            PokerHand testHand = new PokerHand("AS 2S 3H 4C 5D");

            Assert.AreEqual(HandType.Straight, testHand.GetHandType());
        }
예제 #12
0
        public void DetectStraight9()
        {
            PokerHand testHand = new PokerHand("QS KH AC TD JH");

            Assert.AreEqual(HandType.Straight, testHand.GetHandType());
        }
예제 #13
0
        public void DetectStraight5()
        {
            PokerHand testHand = new PokerHand("7S 8H 9C TD 6H");

            Assert.AreEqual(HandType.Straight, testHand.GetHandType());
        }
예제 #14
0
        public void DetectStraight1()
        {
            PokerHand testHand = new PokerHand("2S 3H 4C 5D 6H");

            Assert.AreEqual(HandType.Straight, testHand.GetHandType());
        }
예제 #15
0
        public void DetectRoyalFlushOfSpades()
        {
            PokerHand testHand = new PokerHand("AS TS QS JS KS");

            Assert.AreEqual(HandType.Royal_Flush, testHand.GetHandType());
        }
예제 #16
0
        public void DetectRoyalFlushOfHearts()
        {
            PokerHand testHand = new PokerHand("AH TH QH JH KH");

            Assert.AreEqual(HandType.Royal_Flush, testHand.GetHandType());
        }