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

    Class Assert

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

    Fields

    assertPassCount

    Declaration
    public static ulong assertPassCount
    Field Value
    Type Description
    UInt64

    testsIgnored

    Declaration
    public static int testsIgnored
    Field Value
    Type Description
    Int32

    testsLimitation

    Declaration
    public static int testsLimitation
    Field Value
    Type Description
    Int32

    testsNotSupported

    Declaration
    public static int testsNotSupported
    Field Value
    Type Description
    Int32

    testsPartiallySupported

    Declaration
    public static int testsPartiallySupported
    Field Value
    Type Description
    Int32

    testsRan

    Declaration
    public static int testsRan
    Field Value
    Type Description
    Int32

    Methods

    AreEqual(Entity[], Entity[])

    Declaration
    public static void AreEqual(Entity[] a, Entity[] b)
    Parameters
    Type Name Description
    Entity[] a
    Entity[] b

    AreEqual(Double, Double, Single, String)

    Declaration
    public static void AreEqual(double a, double b, float err, string msg = "")
    Parameters
    Type Name Description
    Double a
    Double b
    Single err
    String msg

    AreEqual(Int32, Int32, String)

    Declaration
    public static void AreEqual(int a, int b, string msg = "")
    Parameters
    Type Name Description
    Int32 a
    Int32 b
    String msg

    AreEqual(Int64, Int64, String)

    Declaration
    public static void AreEqual(long a, long b, string msg = "")
    Parameters
    Type Name Description
    Int64 a
    Int64 b
    String msg

    AreEqual(Object, Object)

    Declaration
    public static void AreEqual(object a, object b)
    Parameters
    Type Name Description
    Object a
    Object b

    AreEqual(Single, Single, String)

    Declaration
    public static void AreEqual(float a, float b, string msg = "")
    Parameters
    Type Name Description
    Single a
    Single b
    String msg

    AreEqual(String, String, String)

    Declaration
    public static void AreEqual(string a, string b, string msg = "")
    Parameters
    Type Name Description
    String a
    String b
    String msg

    AreEqual(Type, Type, String)

    Declaration
    public static void AreEqual(Type a, Type b, string msg = "")
    Parameters
    Type Name Description
    Type a
    Type b
    String msg

    AreEqual(UInt32, UInt32, String)

    Declaration
    public static void AreEqual(uint a, uint b, string msg = "")
    Parameters
    Type Name Description
    UInt32 a
    UInt32 b
    String msg

    AreEqual<T>(T, T, String)

    Declaration
    public static void AreEqual<T>(T a, T b, string msg = "")
        where T : struct
    Parameters
    Type Name Description
    T a
    T b
    String msg
    Type Parameters
    Name Description
    T

    AreEqual<T>(T[], T[], String)

    Declaration
    public static void AreEqual<T>(T[] a, T[] b, string msg = "")
        where T : struct
    Parameters
    Type Name Description
    T[] a
    T[] b
    String msg
    Type Parameters
    Name Description
    T

    AreNotEqual(Int32, Int32, String)

    Declaration
    public static void AreNotEqual(int a, int b, string msg = "")
    Parameters
    Type Name Description
    Int32 a
    Int32 b
    String msg

    AreNotEqual(Object, Object)

    Declaration
    public static void AreNotEqual(object a, object b)
    Parameters
    Type Name Description
    Object a
    Object b

    AreNotEqual(UInt32, UInt32, String)

    Declaration
    public static void AreNotEqual(uint a, uint b, string msg = "")
    Parameters
    Type Name Description
    UInt32 a
    UInt32 b
    String msg

    AreNotEqual<T>(T, T, String)

    Declaration
    public static void AreNotEqual<T>(T a, T b, string msg = "")
        where T : struct
    Parameters
    Type Name Description
    T a
    T b
    String msg
    Type Parameters
    Name Description
    T

    AreNotSame(Object, Object)

    Declaration
    public static void AreNotSame(object a, object b)
    Parameters
    Type Name Description
    Object a
    Object b

    AreSame(Object, Object)

    Declaration
    public static void AreSame(object a, object b)
    Parameters
    Type Name Description
    Object a
    Object b

    Contains(Object, Object)

    Declaration
    public static void Contains(object a, object b)
    Parameters
    Type Name Description
    Object a
    Object b

    DoesNotThrow(TestDelegate)

    Declaration
    public static void DoesNotThrow(TestDelegate code)
    Parameters
    Type Name Description
    TestDelegate code

    Fail(String)

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

    False(Boolean, String)

    Declaration
    public static void False(bool value, string msg = "")
    Parameters
    Type Name Description
    Boolean value
    String msg

    Greater(Int32, Int32, String)

    Declaration
    public static void Greater(int a, int b, string msg = "")
    Parameters
    Type Name Description
    Int32 a
    Int32 b
    String msg

    Greater(UInt64, UInt64, String)

    Declaration
    public static void Greater(ulong a, ulong b, string msg = "")
    Parameters
    Type Name Description
    UInt64 a
    UInt64 b
    String msg

    GreaterOrEqual(Int32, Int32, String)

    Declaration
    public static void GreaterOrEqual(int a, int b, string msg = "")
    Parameters
    Type Name Description
    Int32 a
    Int32 b
    String msg

    Ignore(String)

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

    IsFalse(Boolean, String)

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

    IsNull<T>(T)

    Declaration
    public static void IsNull<T>(T t)
    Parameters
    Type Name Description
    T t
    Type Parameters
    Name Description
    T

    IsTrue(Boolean, String)

    Declaration
    public static void IsTrue(bool value, string msg = "")
    Parameters
    Type Name Description
    Boolean value
    String msg

    Less(Int32, Int32, String)

    Declaration
    public static void Less(int a, int b, string msg = "")
    Parameters
    Type Name Description
    Int32 a
    Int32 b
    String msg

    LessOrEqual(Int32, Int32, String)

    Declaration
    public static void LessOrEqual(int a, int b, string msg = "")
    Parameters
    Type Name Description
    Int32 a
    Int32 b
    String msg

    NotNull<T>(T)

    Declaration
    public static void NotNull<T>(T t)
    Parameters
    Type Name Description
    T t
    Type Parameters
    Name Description
    T

    That(Boolean, Boolean)

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

    That(Int32, Int32)

    Declaration
    public static void That(int a, int b)
    Parameters
    Type Name Description
    Int32 a
    Int32 b

    That(Object[])

    Declaration
    public static void That(params object[] _)
    Parameters
    Type Name Description
    Object[] _

    That(String, String)

    Declaration
    public static void That(string a, string b)
    Parameters
    Type Name Description
    String a
    String b

    That(UInt32, UInt32)

    Declaration
    public static void That(uint a, uint b)
    Parameters
    Type Name Description
    UInt32 a
    UInt32 b

    That(UInt64, UInt64)

    Declaration
    public static void That(ulong a, ulong b)
    Parameters
    Type Name Description
    UInt64 a
    UInt64 b

    Throws<T>(TestDelegate)

    Declaration
    public static void Throws<T>(TestDelegate _)
        where T : Exception
    Parameters
    Type Name Description
    TestDelegate _
    Type Parameters
    Name Description
    T

    True(Boolean, String)

    Declaration
    public static void True(bool value, string msg = "")
    Parameters
    Type Name Description
    Boolean value
    String msg
    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