public static PropertiesDictionary CreateDefaultConfiguration() { PropertiesDictionary configuration = new PropertiesDictionary(); string path = Path.GetTempFileName() + ".xml"; try { var options = new ExportConfigurationOptions { FileFormat = FileFormat.Xml, OutputFilePath = path, }; var command = new TestExportConfigurationCommand(); command.DefaultPlugInAssemblies = new Assembly[] { typeof(ExportConfigurationCommandBaseTests).Assembly }; int result = command.Run(options); Assert.Equal(TestAnalyzeCommand.SUCCESS, result); } finally { if (File.Exists(path)) { configuration.LoadFromXml(path); File.Delete(path); } } return(configuration); }