private static void Save(WriteSpecFlowTest specflowTest) { Console.WriteLine("Please enter the save location"); var savePath = Path.GetFullPath(Console.ReadLine()); while (!Directory.Exists(savePath)) { Console.WriteLine($"Directory {savePath} doesn't exist. Please create it and press any key when done"); savePath = Console.ReadLine(); } specflowTest.SaveToFile(savePath); }