/// <inheritdoc /> public override async Task<RunSummary> RunAsync(IMessageSink diagnosticMessageSink, IMessageBus messageBus, object[] constructorArguments, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource) { var messageBusInterceptor = new SkippableTestMessageBus(messageBus, this.SkippingExceptionNames); var result = await base.RunAsync(diagnosticMessageSink, messageBusInterceptor, constructorArguments, aggregator, cancellationTokenSource); result.Failed -= messageBusInterceptor.SkippedCount; result.Skipped += messageBusInterceptor.SkippedCount; return result; }
/// <inheritdoc /> public override async Task <RunSummary> RunAsync(IMessageSink diagnosticMessageSink, IMessageBus messageBus, object[] constructorArguments, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource) { var messageBusInterceptor = new SkippableTestMessageBus(messageBus, this.SkippingExceptionNames); var result = await base.RunAsync(diagnosticMessageSink, messageBusInterceptor, constructorArguments, aggregator, cancellationTokenSource); result.Failed -= messageBusInterceptor.SkippedCount; result.Skipped += messageBusInterceptor.SkippedCount; return(result); }