示例#1
0
        public void GivenThereAre2Players_And_CurrentPlayersPlace_ShouldReturnTheFirstPlayers_Position_When_MoveToRandomPlace_IsCalled()
        {
            _gamePlayers.AddPlayer(new Player("A"));
            _gamePlayers.AddPlayer(new Player("B"));

            _gamePlayers.MoveToRandomPlace(new Roll(3));

            Assert.AreEqual(3, _gamePlayers.CurrentPlayersPlace);
        }
示例#2
0
 private void DoTheRolling(Roll roll)
 {
     _gamePlayers.MoveToRandomPlace(roll);
     LogRollLocation();
 }