/// <summary>
 /// Formats feature results.
 /// </summary>
 /// <param name="features">Features to format.</param>
 public string Format(params IFeatureResult[] features)
 {
     using (var memory = new MemoryStream())
         using (var writer = new HtmlResultTextWriter(memory, features))
         {
             writer.Write();
             return(Encoding.Default.GetString(memory.ToArray()));
         }
 }
示例#2
0
 /// <summary>
 /// Formats provided feature results and writes to the <paramref name="stream"/>.
 /// </summary>
 /// <param name="stream">Stream to write formatted results to.</param>
 /// <param name="features">Feature results to format.</param>
 public void Format(Stream stream, params IFeatureResult[] features)
 {
     using (var writer = new HtmlResultTextWriter(stream, features))
         writer.Write();
 }