Beispiel #1
0
        /// <summary>
        /// Writes <paramref name="results"/> recursively to file with
        /// name <paramref name="fileName"/>.
        /// </summary>
        /// <param name="results">the results to write</param>
        /// <param name="fileName">the name of the file to write to/param>
        internal static void WriteResults(IResultNode[] results, string fileName)
        {
            long dummy = 0L;

            using (IDataReaderPool dataReaderPool = TestFramework.CreateDataReaderPool())
                using (ResultWriter writer = new ResultWriter(File.Create(fileName), dataReaderPool))
                {
                    foreach (IResultNode result in results)
                    {
                        writer.WriteResult(result, null, ref dummy, 0L);
                    }
                }
        }