Beispiel #1
0
		public static void Print (TextWriter writer, TestResultCollection result)
		{
			writer.WriteLine ();
			writer.WriteLine ("Total: {0} tests, {1} passed, {2} errors.",
			                  result.Count, result.TotalSuccess, result.TotalErrors);
			writer.WriteLine ();

			var printer = new ResultPrinter (writer);
			printer.Visit (result);
		}
        public static void Print(TextWriter writer, TestResultCollection result)
        {
            writer.WriteLine();
            writer.WriteLine("Total: {0} tests, {1} passed, {2} errors.",
                             result.Count, result.TotalSuccess, result.TotalErrors);
            writer.WriteLine();

            var printer = new ResultPrinter(writer);

            printer.Visit(result);
        }
Beispiel #3
0
 static void WriteResults(TestResultCollection results)
 {
     if (xml)
     {
         var serializer = new XmlSerializer(typeof(TestResultCollection));
         serializer.Serialize(Console.Out, results);
         Console.WriteLine();
     }
     else
     {
         ResultPrinter.Print(Console.Out, results);
     }
 }