private void tc_TestCaseCompleteEvent(object sender, EventArgs e) { ITestCase tc = sender as ITestCase; tc.EndTestCase(); Thread.CurrentThread.Abort(); }
private void tc_SingleCallCompleteEvent(object sender, TestCaseResultArgs e) { lock (this.mSyncObj) { this.mCurrentCaseExecuted++; if (e.Result) { this.mCurrentCaseExecutedTime += e.Response; } else { this.mCurrentCaseFailed++; } if (this.mCurrentCaseExecuted >= this.mCurrentCaseRepeat) { this.mCurrentCaseExecuted = this.mCurrentCaseRepeat; ITestCase tc = sender as ITestCase; tc.EndTestCase(); Thread.CurrentThread.Abort(); } } }