コード例 #1
0
        public async Task ExecuteWorkerAsync(ITestPattern pattern, CancellationToken cancelToken)
        {
            while (!cancelToken.IsCancellationRequested)
            {
                UnitTest test = pattern.GetNextTest();

                await this.ExecuteTestAsync(test, cancelToken);
            }
        }
コード例 #2
0
        private void RunWorker(ITestPattern pattern, CancellationToken cancelToken)
        {
            while (!cancelToken.IsCancellationRequested)
            {
                UnitTest t = pattern.GetNextTest();

                t.Execute();
            }
        }
コード例 #3
0
        public async Task ExecuteWorkerAsync(ITestPattern pattern, CancellationToken cancelToken)
        {
            while (!cancelToken.IsCancellationRequested)
            {
                UnitTest test = pattern.GetNextTest();

                await this.ExecuteTestAsync(test, cancelToken);
            }
        }
コード例 #4
0
        private void RunWorker(ITestPattern pattern, CancellationToken cancelToken)
        {
            while (!cancelToken.IsCancellationRequested)
            {
                UnitTest t = pattern.GetNextTest();

                t.Execute();
            }
        }