示例#1
0
        public void Execute_RollsDiceAndMovesPlayer()
        {
            var rollValue = GivenRollValueFrom(_mockDice);

            Command.Execute();

            _mockDice.Verify(d => d.Roll());
            MockPlayerMover.Verify(p => p.Move(Player, rollValue));
        }
        public void Execute_MovesPlayerToSpecifiedSpace()
        {
            Command.Execute();

            MockPlayerMover.Verify(p => p.Place(Player, _mockSpace.Object));
        }