/// <summary> /// Gönderilen Parametreye göre uygun konuma gelir. /// </summary> /// <param name="newPosition"> "1 2 N"</param> public void NewPositionRover(string newPosition) { string[] _newPosition = MarsRoverUtilityMethods.ParsingParameters(newPosition); if (_newPosition.Count() != 3) { throw new ArgumentNullException(MarsRoverMessages.ER_ROVER_MISSING_PARAMETERS_IN_NEWPOSITIONROVER); } Check_NewPositionRover(_newPosition); }
public Plateau(string size) { try { string[] _size = MarsRoverUtilityMethods.ParsingParameters(size); if ((!int.TryParse(_size[0], out _Coordinate_X)) || (!int.TryParse(_size[1], out _Coordinate_Y))) { throw new ArgumentNullException(MarsRoverMessages.ER_PLATEAU_BAD_PARAMETERS_IN_CONSTRUCTOR); } } catch (Exception e) { throw; } }