private UnityTestInstructionExecutor( UnityTestScheduler scheduler, UnityErrorLogInterceptor errorLogInterceptor, bool logErrors) : base( scheduler, errorLogInterceptor, logErrors ? new UnityFailureListener() : null) { this.scheduler = scheduler; this.errorLogInterceptor = errorLogInterceptor; }
private UnityTestInstructionExecutor( UnityTestScheduler scheduler, UnityErrorLogInterceptor errorLogInterceptor, bool logErrors, IGlobalContextProvider globalContextProvider) : base( scheduler, errorLogInterceptor, logErrors ? new UnityFailureListener() : null, globalContextProvider, new[] { typeof(IgnoreException), typeof(InconclusiveException), typeof(SuccessException), }) { this.scheduler = scheduler; this.errorLogInterceptor = errorLogInterceptor; }
/// <summary> /// Constructs a new TestInstructionExecutor with a default Unity configuration. /// If you are not using Responsible all the way, but also have some bare coroutines involved, /// you will probably want to also log any errors, in addition to failing the tests the normal way, /// as Unity has the tendency to swallow exceptions from nested coroutines. /// </summary> /// <param name="logErrors">Whether or not errors should be logged in addition to propagated.</param> public UnityTestInstructionExecutor(bool logErrors = true) : this(UnityTestScheduler.Create(), new UnityErrorLogInterceptor(), logErrors) { }
/// <summary> /// Constructs a new TestInstructionExecutor with a default Unity configuration. /// If you are not using Responsible all the way, but also have some bare coroutines involved, /// you will probably want to also log any errors, in addition to failing the tests the normal way, /// as Unity has the tendency to swallow exceptions from nested coroutines. /// </summary> /// <param name="logErrors">Whether or not errors should be logged in addition to propagated.</param> /// <param name="globalContextProvider"> /// Optional provider for global context, which gets included in failure messages. /// </param> public UnityTestInstructionExecutor(bool logErrors = true, IGlobalContextProvider globalContextProvider = null) : this(UnityTestScheduler.Create(), new UnityErrorLogInterceptor(), logErrors, globalContextProvider) { }