public void PlayerShouldAddMoreCards() { GameInfo gameinfo = _target.NewGame("Teste"); bool endmatch = false; while (!endmatch) { if (gameinfo.GameTable.Player.Cards.Count > 2) { endmatch = true; } if (!endmatch) { gameinfo.GameTable = _target.NextTurn(gameinfo.GameTable, gameinfo.CurrentDeck, true); if (gameinfo.GameTable.Dealer.GetCurrentScore() >= 21 || gameinfo.GameTable.Player.GetCurrentScore() >= 21) { gameinfo = _target.NewGame("Teste"); } } } Assert.IsTrue(gameinfo.GameTable.Player.Cards.Count > 2); }