Ejemplo n.º 1
0
        public void RoverPosition()
        {
            Rover      rover      = null;
            Cordinates cordinates = new Cordinates();

            rover = cordinates.InitRover("5 5");
            rover = cordinates.RoverPosition(rover, "2 1 E");

            // Assert
            Assert.IsNotNull(rover);
        }
Ejemplo n.º 2
0
        public void RoverMovement()
        {
            Rover      rover      = null;
            Cordinates cordinates = new Cordinates();

            rover = cordinates.InitRover("5 5");
            rover = cordinates.RoverPosition(rover, "1 2 N");
            var result = rover.Move("LMLMLMLMM");

            // Assert
            Assert.AreEqual(1, result.GetX());
            Assert.AreEqual(3, result.GetY());
            Assert.AreEqual("N", result.GetDirection());
        }