protected override async Task <RunSummary> RunTestClassAsync( ITestClass testClass, IReflectionTypeInfo @class, IEnumerable <IXunitTestCase> testCases) { // Don't want to use .Concat + .ToDictionary because of the possibility of overriding types, // so instead we'll just let collection fixtures override assembly fixtures. var combinedFixtures = new Dictionary <Type, object>(_assemblyFixtureMappings); foreach (var(key, value) in CollectionFixtureMappings) { combinedFixtures[key] = value; } // We've done everything we need, so let the built-in types do the rest of the heavy lifting var runner = new XunitTestClassRunner( testClass, @class, testCases, _diagnosticMessageSink, MessageBus, TestCaseOrderer, new ExceptionAggregator(Aggregator), CancellationTokenSource, combinedFixtures ); var runSummary = await runner.RunAsync(); return(runSummary); }
protected override Task <RunSummary> RunTestClassAsync(ITestClass testClass, IReflectionTypeInfo @class, IEnumerable <IXunitTestCase> testCases) { var runner = new XunitTestClassRunner( testClass, @class, testCases, _diagnosticMessageSink, MessageBus, TestCaseOrderer, new ExceptionAggregator(Aggregator), CancellationTokenSource, _assemblyFixtureMappings); return(runner.RunAsync()); }