コード例 #1
0
ファイル: Rover.cs プロジェクト: maximn/MarsRoverKata
 private void ThrowIfPositionNotClear(Position position)
 {
     if (!planet.IsClear(position))
     {
         throw new ObstacleOnWayException(string.Format("Can't move to (%0, %1) due to an obstacle on the planet", position.X, position.Y));
     }
 }