Пример #1
0
        public void DealerTest_BurnCorrectNumberOfCards_Test()
        {
            dealer.Shuffle();

            int valueFirstCard = (int)dealer.Shoe.Cards[0].Value;
            int expectedNumberOfCardsAfterBurn = (nDecks * 52) - 1 - Math.Min(valueFirstCard, 10);

            dealer.BurnCards();

            int ActualNumberOfCardsAfterBurn = dealer.Shoe.Cards.Length - 1 - Math.Min(valueFirstCard, 10);

            Assert.AreEqual(expectedNumberOfCardsAfterBurn, ActualNumberOfCardsAfterBurn);
            Assert.AreEqual(Math.Min(valueFirstCard, 10), dealer.Shoe.PointerIndex);
        }