示例#1
0
        public void CardsCanBeAddedToHand()
        {
            List <Card> cards = new List <Card>
            {
                (Clubs, Two), (Diamonds, Three), (Hearts, Four),
                (Spades, Five), (Clubs, Six)
            };

            Hands hand = new Hands();

            CollectionAssert.IsEmpty(hand.Hand);

            foreach (Card card in cards)
            {
                hand.AddCardToHand(card);
            }

            CollectionAssert.AreEqual(cards, hand.Hand);
            Assert.That(hand.Hand, Has.Exactly(5).Items);
        }