private static void DoTest(Config.Dir directory) { Assert.IsFalse(Config.GetFolder(directory).EndsWith(@"\"), string.Format("Config.GetFolder({0}) returns a folder with a trailing backslash", directory)); Assert.IsFalse(Config.GetFile(directory, "test.xml").Contains(@"\\"), string.Format("Config.GetFile({0},\"test.xml\") returns a path with double backslashes", directory)); }
private void OpenMpDirectory(Config.Dir dir) { Process process = new Process(); process.StartInfo.FileName = "explorer.exe"; process.StartInfo.Arguments = Config.GetFolder(dir); process.StartInfo.UseShellExecute = true; process.Start(); }