2
// Copyright (C) 2002. James W. Newkirk, Michael C. Two, Alexei A. Vorontsov. All Rights Reserved.
9
/// Summary description for TestCase.
11
public abstract class TestCase : Test
13
public TestCase(string path, string name) : base(path, name)
16
public override int CountTestCases
21
public override TestResult Run(EventListener listener)
23
TestCaseResult testResult = new TestCaseResult(this);
25
listener.TestStarted(this);
27
long startTime = DateTime.Now.Ticks;
31
long stopTime = DateTime.Now.Ticks;
33
double time = ((double)(stopTime - startTime)) / (double)TimeSpan.TicksPerSecond;
35
testResult.Time = time;
37
listener.TestFinished(testResult);
43
public abstract void Run(TestCaseResult result);