Exemplo n.º 1
0
        public void TestDealCard()
        {
            Card a = d.GetTopCard();

            hand1.DealCard(d);
            Card b = d.GetTopCard();

            hand2.DealCard(d);
            Card c = d.GetTopCard();

            hand3.DealCard(d);
            Card e = d.GetTopCard();

            hand4.DealCard(d);
            Assert.True(hand1.NumCards == 1);
            Assert.True(hand2.NumCards == 6);
            Assert.True(hand3.NumCards == 1);
            Assert.True(hand4.NumCards == 6);
            Assert.True(hand1.GetCard(0) == a);
            Assert.True(hand2.GetCard(5) == b);
            Assert.True(hand3.GetCard(0) == c);
            Assert.True(hand4.GetCard(5) == e);
        }