Esempio n. 1
0
 public static void KeepTempDir(this ScenarioContext state) => state.Set(nameof(KeepTempDir), true);
Esempio n. 2
0
 /// <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()));