public void MoveRoverForwardOneSquare()
        {
            var controller = new ControlInterface();
            var rover      = new Rover();

            rover = controller.Command("F");

            Assert.AreEqual(1, rover.YCoOrdinate);
        }
        public void TurnRoverRight()
        {
            var controller = new ControlInterface();
            var rover      = new Rover();

            rover = controller.Command("R");

            Assert.AreEqual(Compass.E, rover.CompassDirection);
        }
        public void MoveRoverRightAndForward()
        {
            var controller = new ControlInterface();
            var rover      = new Rover();

            rover = controller.Command("RF");

            Assert.AreEqual(0, rover.YCoOrdinate);
            Assert.AreEqual(1, rover.XCoOrdinate);
            Assert.AreEqual(Compass.E, rover.CompassDirection);
        }
        public void TurnLeftAndMoveBack1Space()
        {
            var controller = new ControlInterface();
            var rover      = new Rover();

            rover = controller.Command("LB");

            Assert.AreEqual(1, rover.XCoOrdinate);
            Assert.AreEqual(0, rover.YCoOrdinate);
            Assert.AreEqual(Compass.W, rover.CompassDirection);
        }
        public void MoveForward101Spaces()
        {
            var controller = new ControlInterface();
            var rover      = new Rover();

            for (int i = 0; i < 101; i++)
            {
                rover = controller.Command("F");
            }

            Assert.AreEqual(0, rover.YCoOrdinate);
        }