v1.0.0
Latest
2020.3+

Class AsyncTestHelpers

Inheritance
AsyncTestHelpers
Namespace: Unity.Services.Friends.Tests.Runtime
Syntax
public static class AsyncTestHelpers

Methods

ExecuteTask(Func<Task>)

Declaration
public static IEnumerator ExecuteTask(Func<Task> taskFunc)
Parameters
TypeNameDescription
Func<Task>taskFunc
Returns
TypeDescription
IEnumerator

ExecuteTask(Task)

Declaration
public static IEnumerator ExecuteTask(Task task)
Parameters
TypeNameDescription
Tasktask
Returns
TypeDescription
IEnumerator

RunActionAsUnityCoroutine(Action<Action>)

Declaration
public static IEnumerator RunActionAsUnityCoroutine(Action<Action> action)
Parameters
TypeNameDescription
Action<Action>action
Returns
TypeDescription
IEnumerator

RunAsyncTest(Action<Action>, Action<Action>, Action, Action<Action>)

Declaration
public static IEnumerator RunAsyncTest(Action<Action> setup, Action<Action> test, Action validate, Action<Action> teardown)
Parameters
TypeNameDescription
Action<Action>setup
Action<Action>test
Actionvalidate
Action<Action>teardown
Returns
TypeDescription
IEnumerator