internal override IEnumerator Execute(PlaymodeTestsController controller)
        {
            base.m_Controller = controller;
            this.m_Instance   = this.GetInstanceOfTestObject(base.m_MethodInfo);
            DateTime now = DateTime.Now;

            if (base.m_MethodInfo.ReturnType == typeof(void))
            {
                return(this.HandleVoidTest(this.m_Instance, base.m_MethodInfo));
            }
            if (base.m_MethodInfo.ReturnType == typeof(IEnumerator))
            {
                return(this.HandleEnumerableTest(this.m_Instance, base.m_MethodInfo));
            }
            Debug.Log(string.Concat(new object[] { "Return type ", base.m_MethodInfo.ReturnType, " of ", base.m_MethodInfo.Name, " in ", base.m_Type.FullName, " is not supported." }));
            TimeSpan span = (TimeSpan)(DateTime.Now - now);

            base.m_Duration = (float)span.TotalSeconds;
            return(null);
        }
Beispiel #2
0
 internal virtual IEnumerator Execute(PlaymodeTestsController controller)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
 internal override IEnumerator Execute(PlaymodeTestsController controller) =>