コード例 #1
0
        public void GivenThereAre2Players_And_CurrentPlayerPoints_ShouldReturnTheFirstPlayers_Points_When_AddPointToCurrentPlayer_IsCalled()
        {
            _gamePlayers.AddPlayer(new Player("A"));
            _gamePlayers.AddPlayer(new Player("B"));

            _gamePlayers.AddPointToCurrentPlayer();

            Assert.AreEqual(1, _gamePlayers.CurrentPlayerPoints);
        }
コード例 #2
0
 private void AnswerCorrectly()
 {
     CorrectAnswerMsg();
     _gamePlayers.AddPointToCurrentPlayer();
     Console.WriteLine($"{_gamePlayers.CurrentPlayerName} now has {_gamePlayers.CurrentPlayerPoints} Gold Coins.");
 }