Пример #1
0
 public static void AddCustomButton(Button button)
 {
     try
     {
         UnitTestRunner.AddCustomButton(button);
     }
     catch (Exception ex)
     {
         UnityEngine.Debug.LogException(ex);
     }
 }
Пример #2
0
 public static void AddAsyncTest(Func <UniTask> asyncTest)
 {
     try
     {
         UnitTestRunner.AddTest(asyncTest.Target.GetType().Name, asyncTest.Method.Name, asyncTest);
     }
     catch (Exception ex)
     {
         UnityEngine.Debug.LogException(ex);
     }
 }
Пример #3
0
 public static void AddTest(string group, string title, Action test)
 {
     try
     {
         UnitTestRunner.AddTest(group, title, test);
     }
     catch (Exception ex)
     {
         UnityEngine.Debug.LogException(ex);
     }
 }
Пример #4
0
 public static void AddAsyncTest(string group, string title, Func <IEnumerator> asyncTestCoroutine)
 {
     try
     {
         UnitTestRunner.AddTest(group, title, asyncTestCoroutine);
     }
     catch (Exception ex)
     {
         UnityEngine.Debug.LogException(ex);
     }
 }
Пример #5
0
 public static void AddCustomAction(string name, UnityAction action)
 {
     try
     {
         UnitTestRunner.AddCutomAction(name, action);
     }
     catch (Exception ex)
     {
         UnityEngine.Debug.LogException(ex);
     }
 }