Search Results for

    Show / Hide Table of Contents

    Class AsyncTest

    Utilities for asynchronous tests

    Inheritance
    Object
    AsyncTest
    Namespace: i5.Toolkit.Core.TestHelpers
    Assembly: cs.temp.dll.dll
    Syntax
    public static class AsyncTest

    Methods

    WaitForTask(Task)

    Waits for the given task to complete Use this instead of await in Unit tests. Unity's NUnit version cannot handle Task methods to yield on await Hence, the asynchronous tests must be marked as UnityTests. Awaitable calls are replaced with an assignment to a Task object

    Declaration
    public static IEnumerator WaitForTask(Task task)
    Parameters
    Type Name Description
    Task task

    The task object to await

    Returns
    Type Description
    System.Collections.Generic.IEnumerator
    In This Article
    Back to top i5 Toolkit Documentation