Exemplo n.º 1
0
 public override Task<RunSummary> RunAsync(SpecificationBase specification,
                                  IMessageBus messageBus,
                                  ExceptionAggregator aggregator,
                                  CancellationTokenSource cancellationTokenSource)
 {
     return Task.FromResult(new RunSummary { Total = 1, Skipped = 1  });
 }
Exemplo n.º 2
0
 public virtual Task<RunSummary> RunAsync(SpecificationBase specification,
                                  IMessageBus messageBus,
                                  ExceptionAggregator aggregator,
                                  CancellationTokenSource cancellationTokenSource)
 {
     return new ObservationTestCaseRunner(specification, this, DisplayName, messageBus, aggregator, cancellationTokenSource).RunAsync();
 }
Exemplo n.º 3
0
 public ObservationTestCaseRunner(SpecificationBase specification,
                                  ObservationTestCase testCase,
                                  string displayName,
                                  IMessageBus messageBus,
                                  ExceptionAggregator aggregator,
                                  CancellationTokenSource cancellationTokenSource)
     : base(testCase, messageBus, aggregator, cancellationTokenSource)
 {
     this.specification = specification;
     this.displayName   = displayName;
 }
Exemplo n.º 4
0
 public ObservationTestInvoker(SpecificationBase specification,
                               ITest test,
                               IMessageBus messageBus,
                               Type testClass,
                               MethodInfo testMethod,
                               ExceptionAggregator aggregator,
                               CancellationTokenSource cancellationTokenSource)
     : base(test, messageBus, testClass, null, testMethod, null, aggregator, cancellationTokenSource)
 {
     this.specification = specification;
 }
Exemplo n.º 5
0
 public ObservationTestMethodRunner(SpecificationBase specification,
                                    ITestMethod testMethod,
                                    IReflectionTypeInfo @class,
                                    IReflectionMethodInfo method,
                                    IEnumerable <ObservationTestCase> testCases,
                                    IMessageBus messageBus,
                                    ExceptionAggregator aggregator,
                                    CancellationTokenSource cancellationTokenSource)
     : base(testMethod, @class, method, testCases, messageBus, aggregator, cancellationTokenSource)
 {
     this.specification = specification;
 }
Exemplo n.º 6
0
 public ObservationTestClassRunner(SpecificationBase specification,
                                   ITestClass testClass,
                                   IReflectionTypeInfo @class,
                                   IEnumerable <ObservationTestCase> testCases,
                                   IMessageSink diagnosticMessageSink,
                                   IMessageBus messageBus,
                                   ITestCaseOrderer testCaseOrderer,
                                   ExceptionAggregator aggregator,
                                   CancellationTokenSource cancellationTokenSource)
     : base(testClass, @class, testCases, diagnosticMessageSink, messageBus, testCaseOrderer, aggregator, cancellationTokenSource)
 {
     this.specification = specification;
 }