Exemplo n.º 1
0
        public void GivenThereAre2Players_And_CurrentPlayerPenalty_ShouldReturnTheFirstPlayers_Penalty_When_GivePenaltyToCurrentPlayer_IsCalled()
        {
            _gamePlayers.AddPlayer(new Player("A"));
            _gamePlayers.AddPlayer(new Player("B"));

            _gamePlayers.GivePenaltyToCurrentPlayer();

            Assert.AreEqual(true, _gamePlayers.CurrentPlayerIsInPenalty);
        }
        public void MakeWrongAnswer()
        {
            WrongAnswerMessage();

            _gamePlayers.GivePenaltyToCurrentPlayer();
            Console.WriteLine($"{_gamePlayers.CurrentPlayerName} was sent to the penalty box");
        }