コード例 #1
0
 /// <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)
 {
 }
コード例 #2
0
 /// <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)
 {
 }