Exemplo n.º 1
0
        public void DetectHighCard()
        {
            PokerHand testHand = new PokerHand("2S 4H 6C 8D TS");

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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