Class Assert | DOTS Runtime | 0.22.0-preview.5
docs.unity3d.com
    Show / Hide Table of Contents

    Class Assert

    Inheritance
    Object
    Assert
    Namespace: NUnit.Framework
    Syntax
    public static class Assert

    Methods

    AreEqual(Object, Object)

    Declaration
    public static void AreEqual(object p0, object ceilpow2)
    Parameters
    Type Name Description
    Object p0
    Object ceilpow2

    AreNotEqual(Object, Object)

    Declaration
    public static void AreNotEqual(object i, object value)
    Parameters
    Type Name Description
    Object i
    Object value

    Fail(String)

    Declaration
    public static void Fail(string msg)
    Parameters
    Type Name Description
    String msg

    IsFalse(Boolean)

    Declaration
    public static void IsFalse(bool hasComponent)
    Parameters
    Type Name Description
    Boolean hasComponent

    IsTrue(Boolean)

    Declaration
    public static void IsTrue(bool value)
    Parameters
    Type Name Description
    Boolean value

    That(Boolean)

    Declaration
    public static void That(bool b)
    Parameters
    Type Name Description
    Boolean b

    Throws<T>(Action)

    Declaration
    public static T Throws<T>(Action action)
        where T : Exception
    Parameters
    Type Name Description
    Action action
    Returns
    Type Description
    T
    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