docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX
    on Monday, July 12, 2021