public virtual void AddTest(TestCase tc) { if (tc != null) { testCases.Add(tc); } }
public abstract TestResult Run(TestCase testCase);
private TestVerdict RunTest(TestCase tc) { lock (this) { framework.TestStart(tc.TestcaseId, tc.Component, tc.Function); if (tc.Title != null) { framework.TestTitle(tc.Title); } if (tc.Purpose != null) { framework.TestPurpose(tc.Purpose); } if (tc.Input != null) { framework.TestInput(tc.Input); } TestResult result = tc.Execute(framework); TestVerdict verdict = framework.TestResult(result.ExpectedResult, result.Result, result.ExpectedVerdict, result.Verdict); framework.TestFinish(); return verdict; } }