示例#1
0
        public void Royal_Flush_Has_Score_Of_6834375()
        {
            var hand      = TestHelpers.MakeHand("AD", "KD", "QD", "JD", "10D");
            var pokerHand = new FiveCardPokerHandScore(hand);

            Assert.AreEqual(6834375, pokerHand.GetHandScore());
        }
示例#2
0
        public void Pair_Of_Ks_With_4_3_2_Kicker_Has_Score_Of_1431705()
        {
            var hand      = TestHelpers.MakeHand("KD", "KC", "4D", "3C", "2D");
            var pokerHand = new FiveCardPokerHandScore(hand);

            Assert.AreEqual(1431705, pokerHand.GetHandScore());
        }
示例#3
0
        public void Ace_High_With_9_8_4_3_Kicker_Has_Score_Of_740988()
        {
            var hand      = TestHelpers.MakeHand("8D", "9C", "4D", "3C", "AD");
            var pokerHand = new FiveCardPokerHandScore(hand);

            Assert.AreEqual(740988, pokerHand.GetHandScore());
        }
示例#4
0
        public void Trip_4s_With_A_10_Kicker_Has_Score_Of_2530125()
        {
            var hand      = TestHelpers.MakeHand("4D", "4C", "4D", "AD", "10D");
            var pokerHand = new FiveCardPokerHandScore(hand);

            Assert.AreEqual(2530125, pokerHand.GetHandScore());
        }
示例#5
0
        public void Two_Pair_Of_9s_And_8s_With_4_Kicker_Has_Score_Of_2002275()
        {
            var hand      = TestHelpers.MakeHand("8D", "8C", "9D", "9C", "4D");
            var pokerHand = new FiveCardPokerHandScore(hand);

            Assert.AreEqual(2002275, pokerHand.GetHandScore());
        }
示例#6
0
        public void Straight_With_2_3_4_5_6_Has_Score_Of_3359072()
        {
            var hand      = TestHelpers.MakeHand("6D", "2C", "3D", "4D", "5D");
            var pokerHand = new FiveCardPokerHandScore(hand);

            Assert.AreEqual(3359072, pokerHand.GetHandScore());
        }
示例#7
0
        public void Flush_With_A_9_8_7_2_Has_Score_Of_4537907()
        {
            var hand      = TestHelpers.MakeHand("AD", "9D", "8D", "7D", "2D");
            var pokerHand = new FiveCardPokerHandScore(hand);

            Assert.AreEqual(4537907, pokerHand.GetHandScore());
        }
示例#8
0
        public void Aces_Full_Has_Score_Of_5265000()
        {
            var hand      = TestHelpers.MakeHand("AD", "AC", "AH", "10S", "10D");
            var pokerHand = new FiveCardPokerHandScore(hand);

            Assert.AreEqual(5265000, pokerHand.GetHandScore());
        }
示例#9
0
        public void Quad_5s_Has_Score_Of_5568750()
        {
            var hand      = TestHelpers.MakeHand("5D", "5C", "5H", "5S", "10D");
            var pokerHand = new FiveCardPokerHandScore(hand);

            Assert.AreEqual(5568750, pokerHand.GetHandScore());
        }
示例#10
0
        public void Straight_Flush_With_K_Q_J_10_9_Has_Score_Of_6776259()
        {
            var hand      = TestHelpers.MakeHand("9D", "KD", "QD", "JD", "10D");
            var pokerHand = new FiveCardPokerHandScore(hand);

            Assert.AreEqual(6776259, pokerHand.GetHandScore());
        }