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

    Class Assert

    Inheritance
    Object
    Assert
    Namespace: UnityEngine.Assertions
    Syntax
    public static class Assert

    Methods

    AreApproximatelyEqual(Object, Object, Object, Object)

    Declaration
    public static void AreApproximatelyEqual(object one, object two, object three = null, object msg = null)
    Parameters
    Type Name Description
    Object one
    Object two
    Object three
    Object msg

    AreEqual(Int32, Int32)

    Declaration
    public static void AreEqual(int one, int two)
    Parameters
    Type Name Description
    Int32 one
    Int32 two

    AreEqual(Object, Object)

    Declaration
    public static void AreEqual(object one, object two)
    Parameters
    Type Name Description
    Object one
    Object two

    AreEqual(Single, Single)

    Declaration
    public static void AreEqual(float one, float two)
    Parameters
    Type Name Description
    Single one
    Single two

    AreNotEqual(Int32, Int32)

    Declaration
    public static void AreNotEqual(int one, int two)
    Parameters
    Type Name Description
    Int32 one
    Int32 two

    AreNotEqual(Object, Object)

    Declaration
    public static void AreNotEqual(object one, object two)
    Parameters
    Type Name Description
    Object one
    Object two

    AreNotEqual(Single, Single)

    Declaration
    public static void AreNotEqual(float one, float two)
    Parameters
    Type Name Description
    Single one
    Single two

    IsFalse(Boolean, String)

    Declaration
    public static void IsFalse(bool b, string msg = null)
    Parameters
    Type Name Description
    Boolean b
    String msg

    IsNotNull(Object)

    Declaration
    public static void IsNotNull(object obj)
    Parameters
    Type Name Description
    Object obj

    IsNull(Object)

    Declaration
    public static void IsNull(object obj)
    Parameters
    Type Name Description
    Object obj

    IsTrue(Boolean, String)

    Declaration
    public static void IsTrue(bool b, string msg = null)
    Parameters
    Type Name Description
    Boolean b
    String msg
    In This Article
    • Methods
      • AreApproximatelyEqual(Object, Object, Object, Object)
      • AreEqual(Int32, Int32)
      • AreEqual(Object, Object)
      • AreEqual(Single, Single)
      • AreNotEqual(Int32, Int32)
      • AreNotEqual(Object, Object)
      • AreNotEqual(Single, Single)
      • IsFalse(Boolean, String)
      • IsNotNull(Object)
      • IsNull(Object)
      • IsTrue(Boolean, String)
    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