Exemplo n.º 1
0
        public void BlackJack_playerCanStay_HasStayed()
        {
            Blackjack blackjack = new Blackjack();

            blackjack.ResetGame();
            blackjack.DealFirstHand(blackjack.Player);
            blackjack.Stay();

            Assert.True(blackjack.Player.HasStayed);
        }
Exemplo n.º 2
0
        public void BlackJack_playerCanStay_DrawsNoCards()
        {
            //Given
            Blackjack blackjack = new Blackjack();

            blackjack.ResetGame();
            blackjack.DealFirstHand(blackjack.Player);
            blackjack.Stay();

            //When
            const int expected = 2;
            int       actual   = blackjack.Player.Hand.Cards.Count;

            //Then
            Assert.Equal(expected, actual);
        }