Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }