public virtual TestResult doRun(Test suite, bool wait) { int num1 = wait ? 1 : 0; TestResult testResult = this.createTestResult(); testResult.addListener((TestListener) this.fPrinter); long num2 = System.currentTimeMillis(); suite.run(testResult); long num3 = System.currentTimeMillis() - num2; this.fPrinter.print(testResult, num3); this.pause(num1 != 0); return testResult; }
public virtual void runTest(Test test, TestResult result) { test.run(result); }