コード例 #1
0
        public void Move_Forward(string initialDirection, int endX, int endY)
        {
            var direction = Direction.FromCode(initialDirection);
            var position  = Position.Create(1, 1);

            var sut = new MarsRover(direction, position);

            sut.MoveForward();

            sut.Position.X.Should().Be(endX);
            sut.Position.Y.Should().Be(endY);
        }
コード例 #2
0
 public void Execute()
 {
     _receiver.MoveForward();
 }