Esempio n. 1
0
 protected override BeforeAfterTestCommandState GetState(UnityTestExecutionContext context)
 {
     return(null);
 }
 protected override BeforeAfterTestCommandState GetState(UnityTestExecutionContext context)
 {
     return(context.OuterUnityTestActionState);
 }
Esempio n. 3
0
 protected override IEnumerator InvokeAfter(ITestAction action, Test test, UnityTestExecutionContext context)
 {
     action.AfterTest(test);
     yield return(null);
 }
Esempio n. 4
0
 protected abstract BeforeAfterTestCommandState GetState(UnityTestExecutionContext context);
 protected override IEnumerator InvokeAfter(IOuterUnityTestAction action, Test test, UnityTestExecutionContext context)
 {
     return(action.AfterTest(test));
 }
Esempio n. 6
0
 public CoroutineRunner(MonoBehaviour playmodeTestsController, UnityTestExecutionContext context)
 {
     m_Controller = playmodeTestsController;
     m_Context    = context;
 }
Esempio n. 7
0
 protected abstract IEnumerator InvokeAfter(T action, Test test, UnityTestExecutionContext context);
Esempio n. 8
0
 protected override BeforeAfterTestCommandState GetState(UnityTestExecutionContext context)
 {
     return(context.SetUpTearDownState);
 }
Esempio n. 9
0
        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));
 }
Esempio n. 11
0
 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);
 }
Esempio n. 12
0
 protected override IEnumerator InvokeBefore(MethodInfo action, Test test, UnityTestExecutionContext context)
 {
     Reflect.InvokeMethod(action, context.TestObject);
     yield return(null);
 }