~nunit-core/nunitv2/2.5

« back to all changes in this revision

Viewing changes to src/NUnitFramework/core/ResultSummarizer.cs

  • Committer: jnewkirk
  • Date: 2002-07-10 20:00:13 UTC
  • Revision ID: vcs-imports@canonical.com-20020710200013-j8us5mbi0usp7p02
initialĀ load

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
// Copyright (C) 2002. James W. Newkirk, Michael C. Two, Alexei A. Vorontsov. All Rights Reserved.
 
3
//
 
4
namespace Nunit.Core
 
5
{
 
6
        using System;
 
7
 
 
8
        /// <summary>
 
9
        /// Summary description for ResultSummarizer.
 
10
        /// </summary>
 
11
        public class ResultSummarizer
 
12
        {
 
13
                private SummaryVisitor visitor = new SummaryVisitor();
 
14
 
 
15
                public ResultSummarizer(TestResult result)
 
16
                {
 
17
                        result.Accept(visitor);
 
18
                }
 
19
 
 
20
                public string Name
 
21
                {
 
22
                        get { return visitor.Name; }
 
23
                }
 
24
 
 
25
                public bool Success
 
26
                {
 
27
                        get { return visitor.Success; }
 
28
                }
 
29
 
 
30
                public int ResultCount
 
31
                {
 
32
                        get { return visitor.Count; }
 
33
                }
 
34
 
 
35
//              public int Errors
 
36
//              {
 
37
//                      get { return visitor.Errors; }
 
38
//              }
 
39
 
 
40
                public int Failures 
 
41
                {
 
42
                        get { return visitor.Failures; }
 
43
                }
 
44
 
 
45
                public double Time
 
46
                {
 
47
                        get { return visitor.Time; }
 
48
                }
 
49
 
 
50
                public int TestsNotRun
 
51
                {
 
52
                        get { return visitor.TestsNotRun; }
 
53
                }
 
54
 
 
55
                public int SuitesNotRun
 
56
                {
 
57
                        get { return visitor.SuitesNotRun; }
 
58
                }
 
59
        }
 
60
}