コード例 #1
0
        public void CanDetectFourOfKind()
        {
            _handModel.AddCardToHand(new CardModel(CardSuit.Club, CardValue.Five));
            _handModel.AddCardToHand(new CardModel(CardSuit.Heart, CardValue.Five));
            _handModel.AddCardToHand(new CardModel(CardSuit.Spade, CardValue.Five));
            _handModel.AddCardToHand(new CardModel(CardSuit.Diamond, CardValue.Five));
            _handModel.AddCardToHand(new CardModel(CardSuit.Club, CardValue.Nine));

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