예제 #1
0
        public void CheckReturnedCardIsDealt()
        {
            Shoe shoe = new Shoe(1);
            var  card = shoe.GetCard();

            Assert.True(card.dealt);
        }
예제 #2
0
        public void CheckGetCardReturnValue()
        {
            Shoe shoe = new Shoe(1);
            var  card = shoe.GetCard();

            Assert.IsType <Card>(card);
        }
예제 #3
0
        public void CheckGetCardWhenShoeEmpty()
        {
            Shoe shoe = new Shoe(1);

            shoe.shoeOfCards.ForEach(card =>
            {
                card.dealt = true;
            });
            var card = shoe.GetCard();

            Assert.Null(card);
        }