Exemplo n.º 1
0
 public virtual void AddTest(TestCase tc)
 {
     if (tc != null)
     {
         testCases.Add(tc);
     }
 }
Exemplo n.º 2
0
 public abstract TestResult Run(TestCase testCase);
Exemplo n.º 3
0
 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;
     }
 }
Exemplo n.º 4
0
 public abstract TestResult Run(TestCase testCase);