示例#1
0
文件: Test.cs 项目: PChiesa/Poker
        public void IsStraight()
        {
            _cardHand = new List <Card> {
                new Card(CardRank.Eight, CardSuit.Spades),
                new Card(CardRank.Seven, CardSuit.Hearts),
                new Card(CardRank.Five, CardSuit.Clubs),
                new Card(CardRank.Four, CardSuit.Spades),
                new Card(CardRank.Three, CardSuit.Clubs)
            };

            var hand = new Straight();

            Assert.IsTrue(hand.HasHand(_cardHand));
        }