Пример #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);
        }