public static void KeepTempDir(this ScenarioContext state) => state.Set(nameof(KeepTempDir), true);
/// <summary> /// Gets the temporary directory where files will be written, if any. /// </summary> public static string GetTempDir(this ScenarioContext state) => state.GetOrSet("TempDir", () => Path.Combine(Path.GetTempPath(), // By default we try to use the test method as set by the Syntax.Scenario call. state.GetOrSet("testMethod", () => Guid.NewGuid().ToString()), Guid.NewGuid().ToString()));