Esempio n. 1
0
 /// <summary>
 /// Constructs a new test instruction executor.
 /// </summary>
 /// <param name="scheduler">Implementation for time and frame based operations.</param>
 /// <param name="externalResultSource">
 /// Optional source for premature completion of test operations.
 /// </param>
 /// <param name="failureListener">
 /// Optional failure listener, to get notifications on test operation failures.
 /// </param>
 /// <param name="globalContextProvider">
 /// Optional provider for global context, which gets included in failure messages.
 /// </param>
 public TestInstructionExecutor(
     ITestScheduler scheduler,
     IExternalResultSource externalResultSource   = null,
     IFailureListener failureListener             = null,
     IGlobalContextProvider globalContextProvider = null)
 {
     this.scheduler             = scheduler;
     this.externalResultSource  = externalResultSource;
     this.failureListener       = failureListener;
     this.globalContextProvider = globalContextProvider;
 }
Esempio n. 2
0
 /// <summary>
 /// Constructs a new test instruction executor.
 /// </summary>
 /// <param name="scheduler">Implementation for time and frame based operations.</param>
 /// <param name="externalResultSource">
 /// Optional source for premature completion of test operations.
 /// </param>
 /// <param name="failureListener">
 /// Optional failure listener, to get notifications on test operation failures.
 /// </param>
 /// <param name="globalContextProvider">
 /// Optional provider for global context, which gets included in failure messages.
 /// </param>
 /// <param name="rethrowableExceptions">
 /// Optional collection of exception types to rethrow, instead of wrapping them in
 /// <see cref="TestFailureException"/>.
 /// Test instructions terminating with any of the given exception types will be considered
 /// completed, and not failed. Can be used with e.g. NUnit's <c>IgnoreException</c>.
 /// </param>
 public TestInstructionExecutor(
     ITestScheduler scheduler,
     IExternalResultSource externalResultSource   = null,
     IFailureListener failureListener             = null,
     IGlobalContextProvider globalContextProvider = null,
     IReadOnlyList <Type> rethrowableExceptions   = null)
 {
     this.scheduler             = scheduler;
     this.externalResultSource  = externalResultSource;
     this.failureListener       = failureListener;
     this.globalContextProvider = globalContextProvider;
     this.rethrowableExceptions = rethrowableExceptions;
 }