static void InitalizeSettings(out IParallelEnvsSettings settings) { settings = new ParallelEnvsSettings(); if (File.Exists(Path.Combine(settings.ApplicationWorkDirectoryPath, ParallelEnvsSettings.FILE_NAME))) { settings.LoadFromFile(); } }
public void Test2() { var env = EnvManager.Generate("Hello"); var settings = new ParallelEnvsSettings(); settings.EnvNames.Add(env.Name); EnvManager.AddFile(ref env, existsFilePath, settings); }
public void Test3() { var env = EnvManager.Generate("Hello"); var settings = new ParallelEnvsSettings(); settings.EnvNames.Add(env.Name); Assert.Throws <FileNotFoundException>(() => { EnvManager.AddFile(ref env, unknownFilePath, settings); }); }