Пример #1
0
        public string Run()
        {
            _rover.Run(_marsMap, _roverInstructions);

            string result = _rover.ShowStatus();

            Console.WriteLine(result);
            return(result);
        }
Пример #2
0
        public void RoverTest()
        {
            _Rover.Run();
            int    xCoordinate     = _Rover.XCoordinate;
            int    yCoordinate     = _Rover.YCoordinate;
            string directionFacing = _Rover.DirectionFacing;

            Assert.AreEqual(3, xCoordinate);
            Assert.AreEqual(3, yCoordinate);
            Assert.AreEqual("S", directionFacing);
        }