public void Player_Turn_Player_Hit_Get_One_Card()
        {
            //Arrange
            Dealer dealer = new Dealer(new List <Deck> {
                new Deck()
            }, 0);
            Player player = new Player(0);

            //Act
            var table = new GameTable(dealer, player, _Settlement);

            table.GameStart();
            table.Hit();
            //Assert
            Assert.AreEqual(3, table.PlayerHand.Count);
        }
        public void Dealer_Turn_Will_Hit_Until_Larger_Than(int score)
        {
            //Arrange
            Dealer dealer = new Dealer(new List <Deck> {
                new Deck()
            }, 0);
            Player player = new Player(0);

            //Act
            var table = new GameTable(dealer, player, _Settlement);

            table.GameStart();
            table.Stay();
            table.Hit();
            //Assert
            Assert.IsTrue(table.DealerHandScore > 16);
        }
        public void Game_End_If_Player_Exceeds_21()
        {
            //Arrange
            Dealer dealer = new Dealer(new List <Deck> {
                new Deck()
            }, 0);
            Player player = new Player(0);

            //Act
            var table = new GameTable(dealer, player, _Settlement);

            table.GameStart();
            while (table.PlayerHandScore <= 21)
            {
                table.Hit();
            }
            //Assert
            Assert.AreEqual(GameStatus.End, table.GameStatus);
        }