2
// Copyright (C) 2002. James W. Newkirk, Michael C. Two, Alexei A. Vorontsov. All Rights Reserved.
9
/// Summary description for SiummaryVisitor.
11
public class SummaryVisitor : ResultVisitor
13
private int totalCount;
14
private int failureCount;
15
private int testsNotRun;
16
private int suitesNotRun;
20
private bool initialized;
22
public SummaryVisitor()
28
public void visit(TestCaseResult caseResult)
30
if(caseResult.Executed)
33
if(caseResult.IsFailure)
40
public void visit(TestSuiteResult suiteResult)
42
SetNameandTime(suiteResult.Name, suiteResult.Time);
46
foreach (TestResult result in suiteResult.Results)
51
if(!suiteResult.Executed)
60
private void SetNameandTime(string name, double time)
72
get { return (failureCount == 0); }
77
get { return totalCount; }
82
get { return failureCount; }
85
public int TestsNotRun
87
get { return testsNotRun; }
90
public int SuitesNotRun
92
get { return suitesNotRun; }