private static void ChangeCurrentDirectory(Directory destinationDirectory, IDrive drive, IOutputter outputter) { bool success = drive.ChangeCurrentDirectory(destinationDirectory); if (!success) { outputter.PrintLine(SYSTEM_CANNOT_FIND_THE_PATH_SPECIFIED); } }