docs.unity3d.com
    Show / Hide Table of Contents

    Class TestHelpers

    Inheritance
    Object
    TestHelpers
    Namespace: Unity.Cloud.Collaborate.Tests
    Syntax
    public static class TestHelpers : object

    Fields

    TestDirectory

    Declaration
    public const string TestDirectory = null
    Field Value
    Type Description
    String

    Methods

    RunSync(Func<Task>)

    Declaration
    public static void RunSync(Func<Task> func)
    Parameters
    Type Name Description
    Func<Task> func

    RunSync<TResult>(Func<Task<TResult>>)

    Declaration
    public static TResult RunSync<TResult>(Func<Task<TResult>> func)
    Parameters
    Type Name Description
    Func<Task<TResult>> func
    Returns
    Type Description
    TResult
    Type Parameters
    Name Description
    TResult

    ShouldBe(Object, Object, String)

    Declaration
    public static void ShouldBe(this object expr1, object value, string msg = "")
    Parameters
    Type Name Description
    Object expr1
    Object value
    String msg

    ShouldBe<T>(T, T, String)

    Declaration
    public static void ShouldBe<T>(this T expr1, T value, string msg = "")
    Parameters
    Type Name Description
    T expr1
    T value
    String msg
    Type Parameters
    Name Description
    T

    ShouldBeNull(Object, String)

    Declaration
    public static void ShouldBeNull(object obj, string msg = "")
    Parameters
    Type Name Description
    Object obj
    String msg

    ThrowsAsync<T>(Func<Task>)

    Declaration
    public static void ThrowsAsync<T>(Func<Task> asyncDelegate)
        where T : Exception
    Parameters
    Type Name Description
    Func<Task> asyncDelegate
    Type Parameters
    Name Description
    T
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023