예제 #1
0
        public void MoveOnePositionForEachCompassDirection(string expectedPosition, string commands)
        {
            var startNavigate = new Navigate(Compass.N, 1, 1);
            var marsRover     = new MarsRover(startNavigate);
            var position      = marsRover.Execute(commands);

            Assert.Equal(expectedPosition, position);
        }
예제 #2
0
        public void MoveDiagonalIfYouAreOnDirectionNorthWestEastSouthAndRobotTurnLeftOrRightAndMove(string expectedPosition, string commands)
        {
            var startNavigate = new Navigate(Compass.N, 1, 1);
            var marsRover     = new MarsRover(startNavigate);
            var position      = marsRover.Execute(commands);

            Assert.Equal(expectedPosition, position);
        }
예제 #3
0
 public MarsRoverShould()
 {
     _marsRover = new MarsRover();
 }