コード例 #1
0
        public void SimpleFlushDetection()
        {
            testHand.Cards.Add(new Card()
            {
                Rank = CardRank.Ace, Suit = CardSuit.Clubs
            });
            testHand.Cards.Add(new Card()
            {
                Rank = CardRank.Eight, Suit = CardSuit.Clubs
            });
            testHand.Cards.Add(new Card()
            {
                Rank = CardRank.Five, Suit = CardSuit.Clubs
            });
            testHand.Cards.Add(new Card()
            {
                Rank = CardRank.Four, Suit = CardSuit.Clubs
            });
            testHand.Cards.Add(new Card()
            {
                Rank = CardRank.Jack, Suit = CardSuit.Clubs
            });

            Assert.IsTrue(testHand.ContainsHandType(PokerHandType.Flush), "Flush detection failed.");
        }