Example #1
0
        public void Test_CheckCardsInHand_RoyalStraghtFlush(string strCard)
        {
            Poker poker   = new Poker("Test");
            var   success = poker.SetCardsInHand(strCard);

            poker.CheckCardsInHand();

            Assert.IsTrue(poker.Pokerhand == POKERHANDS.RoyalStraightFlush);
        }
Example #2
0
        public void Test_CheckCardsInHand_Four_of_a_kind(string strCard)
        {
            Poker poker   = new Poker("Test");
            var   success = poker.SetCardsInHand(strCard);

            poker.CheckCardsInHand();

            Assert.IsTrue(poker.Pokerhand == POKERHANDS.FourOfAKind);
        }
Example #3
0
        public void Test_CheckCardsInHand_HighCard(string strCard)
        {
            Poker poker   = new Poker("Test");
            var   success = poker.SetCardsInHand(strCard);

            poker.CheckCardsInHand();

            Assert.IsTrue(poker.Pokerhand == POKERHANDS.HighCard);
        }