public async Task ExecuteWorkerAsync(ITestPattern pattern, CancellationToken cancelToken) { while (!cancelToken.IsCancellationRequested) { UnitTest test = pattern.GetNextTest(); await this.ExecuteTestAsync(test, cancelToken); } }
private void RunWorker(ITestPattern pattern, CancellationToken cancelToken) { while (!cancelToken.IsCancellationRequested) { UnitTest t = pattern.GetNextTest(); t.Execute(); } }