string PerformTest(string configurationFile, string transformFile) { var temp = Path.GetTempFileName(); File.Copy(configurationFile, temp, true); using (new TemporaryFile(temp)) { configurationTransformer.PerformTransform(temp, transformFile, temp); return(File.ReadAllText(temp)); } }
string PerformTest(string configurationFile, string transformFile) { var temp = Path.GetTempFileName(); File.Copy(MapSamplePath(configurationFile), temp, true); using (new TemporaryFile(temp)) { var substituter = new ConfigurationTransformer(); substituter.PerformTransform(temp, MapSamplePath(transformFile), temp); return(File.ReadAllText(temp)); } }