/// <summary> /// Saves formatted feature <c>results</c> to file specified in constructor. /// If output path refers to directory which does not exist, it will be created. /// </summary> /// <param name="results">Results to save.</param> public void Save(params IFeatureResult[] results) { var outputPath = _path.Resolve(results); FilePathHelper.EnsureOutputDirectoryExists(outputPath); using (var stream = File.Create(outputPath)) Formatter.Format(stream, results); }