Example #1
0
        protected override async Task <RunSummary> RunTestCollectionsAsync(IMessageBus messageBus, CancellationTokenSource cancellationTokenSource)
        {
            var localTestCases = TestCases.Except(TestCases.Where(tc => ((tc is VsTestCaseBase) || (tc is VsInstanceTestCase))));
            var result         = await Local_RunTestCasesAsync(localTestCases, messageBus, cancellationTokenSource);

            foreach (var remoteTestCases in TestCases.OfType <VsTestCaseBase>().GroupBy(tc => tc.InstanceId).OrderBy(g => g.Key))
            {
                result.Aggregate(await Remote_RunTestCasesAsync(remoteTestCases.Key, remoteTestCases, messageBus, cancellationTokenSource));
            }

            return(result);
        }