Exemple #1
0
        public void SendAsideToWinnerMakesPlayerHaveMoreCardThanOthers(int nbPlayers)
        {
            var players = Musketeers(nbPlayers);

            players.First().Dealer = true;
            DealingService ds      = new DealingService(true, players);

            ds.DealsAllCardsFromDeck();
            Player attacker = ds.NextPlayer();

            attacker.Attacker = true;

            ds.SendAsideToPlayerHand(attacker);

            while (ds.GetRoundNumber() == 0)
            {
                Player player = ds.NextPlayer();
                Assert.That(attacker.Hand.Count, Is.GreaterThan(player.Hand.Count));
            }
        }