Example #1
0
        public void TwoPair()
        {
            var hand      = TestHelpers.MakeHand("9H", "9D", "8C", "10S", "10D");
            var pokerHand = new FiveCardPokerHandScore(hand);

            Assert.AreEqual(FiveCardPokerHandScore.HandRank.TwoPair, pokerHand.GetHandRank());
        }
Example #2
0
        public void Flush()
        {
            var hand      = TestHelpers.MakeHand("AD", "KD", "2D", "JD", "10D");
            var pokerHand = new FiveCardPokerHandScore(hand);

            Assert.AreEqual(FiveCardPokerHandScore.HandRank.Flush, pokerHand.GetHandRank());
        }
Example #3
0
        public void ThreeOfAKind()
        {
            var hand      = TestHelpers.MakeHand("9H", "9D", "9C", "7S", "10D");
            var pokerHand = new FiveCardPokerHandScore(hand);

            Assert.AreEqual(FiveCardPokerHandScore.HandRank.ThreeOfAKind, pokerHand.GetHandRank());
        }
Example #4
0
        public void Straight()
        {
            var hand      = TestHelpers.MakeHand("AC", "KD", "QD", "JD", "10D");
            var pokerHand = new FiveCardPokerHandScore(hand);

            Assert.AreEqual(FiveCardPokerHandScore.HandRank.Straight, pokerHand.GetHandRank());
        }
Example #5
0
        public void HighCard()
        {
            var hand      = TestHelpers.MakeHand("AC", "8H", "9C", "10S", "4D");
            var pokerHand = new FiveCardPokerHandScore(hand);

            Assert.AreEqual(FiveCardPokerHandScore.HandRank.HighCard, pokerHand.GetHandRank());
        }
Example #6
0
        public void FullHouse()
        {
            var hand      = TestHelpers.MakeHand("9H", "9D", "9C", "10S", "10D");
            var pokerHand = new FiveCardPokerHandScore(hand);

            Assert.AreEqual(FiveCardPokerHandScore.HandRank.FullHouse, pokerHand.GetHandRank());
        }