retag
[mcs.git] / nunit24 / ClientUtilities / util / ResultSummarizer.cs
blobe48c3063f33c46ff9497e39aed1d6ef4294685a6
1 // ****************************************************************
2 // This is free software licensed under the NUnit license. You
3 // may obtain a copy of the license as well as information regarding
4 // copyright ownership at http://nunit.org/?p=license&r=2.4.
5 // ****************************************************************
7 namespace NUnit.Util
9 using System;
10 using NUnit.Core;
12 /// <summary>
13 /// Summary description for ResultSummarizer.
14 /// </summary>
15 public class ResultSummarizer
17 private SummaryVisitor visitor = new SummaryVisitor();
19 public ResultSummarizer(TestResult result)
21 result.Accept(visitor);
24 public ResultSummarizer(TestResult[] results)
26 foreach( TestResult result in results )
27 result.Accept( visitor );
30 public string Name
32 get { return visitor.Name; }
35 public bool Success
37 get { return visitor.Success; }
40 public int ResultCount
42 get { return visitor.ResultCount; }
45 // public int Errors
46 // {
47 // get { return visitor.Errors; }
48 // }
50 public int FailureCount
52 get { return visitor.FailureCount; }
55 public int SkipCount
57 get { return visitor.SkipCount; }
60 public int IgnoreCount
62 get { return visitor.IgnoreCount; }
65 public double Time
67 get { return visitor.Time; }
70 public int TestsNotRun
72 get { return visitor.TestsNotRun; }
75 public int SuitesNotRun
77 get { return visitor.SuitesNotRun; }