Esempio n. 1
0
        public void GivenThereAre2Players_And_CanPlayerAnswer_ShouldReturn_False_When_CurrentPlayerIsInPenalty()
        {
            _gamePlayers.AddPlayer(new Player("A"));
            _gamePlayers.AddPlayer(new Player("B"));

            _gamePlayers.GivePenaltyToCurrentPlayer();


            Assert.AreEqual(false, _gamePlayers.CanPlayerAnswer());
        }
        public void MakeCorrectAnswer()
        {
            var playerCanAnswer = _gamePlayers.CanPlayerAnswer();

            if (playerCanAnswer)
            {
                AnswerCorrectly();
            }
        }