示例#1
0
        public void CanDetectStraight()
        {
            _handModel.AddCardToHand(new CardModel(CardSuit.Club, CardValue.Two));
            _handModel.AddCardToHand(new CardModel(CardSuit.Diamond, CardValue.Four));
            _handModel.AddCardToHand(new CardModel(CardSuit.Diamond, CardValue.Five));
            _handModel.AddCardToHand(new CardModel(CardSuit.Spade, CardValue.Three));
            _handModel.AddCardToHand(new CardModel(CardSuit.Heart, CardValue.Six));

            Assert.True(_handModel.HasStraight());
        }