示例#1
0
        public void TestIsValid1()
        {
            ICard[] cards = new ICard[5]
            {
                new Card(CardRank.Nine, CardSuit.Spades),
                new Card(CardRank.Two, CardSuit.Hearts),
                new Card(CardRank.Jack, CardSuit.Clubs),
                new Card(CardRank.Two, CardSuit.Hearts),
                new Card(CardRank.Five, CardSuit.Diamonds)
            };

            IHand hand = new Hand(cards);

            bool validHand = handEvaluator.IsValid(hand);

            Assert.AreEqual(false, validHand, "Hand validation does not work correctly (accepts identical cards).");
        }