protected override BeforeAfterTestCommandState GetState(UnityTestExecutionContext context) { return(null); }
protected override BeforeAfterTestCommandState GetState(UnityTestExecutionContext context) { return(context.OuterUnityTestActionState); }
protected override IEnumerator InvokeAfter(ITestAction action, Test test, UnityTestExecutionContext context) { action.AfterTest(test); yield return(null); }
protected abstract BeforeAfterTestCommandState GetState(UnityTestExecutionContext context);
protected override IEnumerator InvokeAfter(IOuterUnityTestAction action, Test test, UnityTestExecutionContext context) { return(action.AfterTest(test)); }
public CoroutineRunner(MonoBehaviour playmodeTestsController, UnityTestExecutionContext context) { m_Controller = playmodeTestsController; m_Context = context; }
protected abstract IEnumerator InvokeAfter(T action, Test test, UnityTestExecutionContext context);
protected override BeforeAfterTestCommandState GetState(UnityTestExecutionContext context) { return(context.SetUpTearDownState); }
protected override IEnumerator InvokeAfter(MethodInfo action, Test test, UnityTestExecutionContext context) { var task = Reflect.InvokeMethod(action, context.TestObject) as Task; return(WaitForTask(task)); }
protected override IEnumerator InvokeAfter(MethodInfo action, Test test, UnityTestExecutionContext context) { return((IEnumerator)Reflect.InvokeMethod(action, context.TestObject)); }
protected override IEnumerator InvokeAfter(MethodInfo action, Test test, UnityTestExecutionContext context) { using (new ProfilerMarker(test.Name + ".TearDown").Auto()) Reflect.InvokeMethod(action, context.TestObject); yield return(null); }
protected override IEnumerator InvokeBefore(MethodInfo action, Test test, UnityTestExecutionContext context) { Reflect.InvokeMethod(action, context.TestObject); yield return(null); }