コード例 #1
0
ファイル: TestActionCommand.cs プロジェクト: 0geova0/Jam
 protected override BeforeAfterTestCommandState GetState(UnityTestExecutionContext context)
 {
     return(null);
 }
コード例 #2
0
 protected override BeforeAfterTestCommandState GetState(UnityTestExecutionContext context)
 {
     return(context.OuterUnityTestActionState);
 }
コード例 #3
0
ファイル: TestActionCommand.cs プロジェクト: 0geova0/Jam
 protected override IEnumerator InvokeAfter(ITestAction action, Test test, UnityTestExecutionContext context)
 {
     action.AfterTest(test);
     yield return(null);
 }
コード例 #4
0
 protected abstract BeforeAfterTestCommandState GetState(UnityTestExecutionContext context);
コード例 #5
0
 protected override IEnumerator InvokeAfter(IOuterUnityTestAction action, Test test, UnityTestExecutionContext context)
 {
     return(action.AfterTest(test));
 }
コード例 #6
0
 public CoroutineRunner(MonoBehaviour playmodeTestsController, UnityTestExecutionContext context)
 {
     m_Controller = playmodeTestsController;
     m_Context    = context;
 }
コード例 #7
0
 protected abstract IEnumerator InvokeAfter(T action, Test test, UnityTestExecutionContext context);
コード例 #8
0
 protected override BeforeAfterTestCommandState GetState(UnityTestExecutionContext context)
 {
     return(context.SetUpTearDownState);
 }
コード例 #9
0
        protected override IEnumerator InvokeAfter(MethodInfo action, Test test, UnityTestExecutionContext context)
        {
            var task = Reflect.InvokeMethod(action, context.TestObject) as Task;

            return(WaitForTask(task));
        }
コード例 #10
0
 protected override IEnumerator InvokeAfter(MethodInfo action, Test test, UnityTestExecutionContext context)
 {
     return((IEnumerator)Reflect.InvokeMethod(action, context.TestObject));
 }
コード例 #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);
 }
コード例 #12
0
ファイル: SetUpTearDownCommand.cs プロジェクト: 0geova0/Jam
 protected override IEnumerator InvokeBefore(MethodInfo action, Test test, UnityTestExecutionContext context)
 {
     Reflect.InvokeMethod(action, context.TestObject);
     yield return(null);
 }