{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method ApplyTo | Test Framework | 2.0.1-exp.2
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ApplyTo

    ApplyTo(object)

    Applies GC memory constraint to the test.

    Declaration
    public override ConstraintResult ApplyTo(object obj)
    Parameters
    Type Name Description
    object obj

    An object to apply the GC constraint to. Should be a TestDelegate.

    Returns
    Type Description
    ConstraintResult

    A ConstraintResult

    Exceptions
    Type Condition
    ArgumentNullException

    Throws a ArgumentNullException if the provided object is null.

    ArgumentException

    Throws a ArgumentException if the provided object is not a TestDelegate.

    ApplyTo<TActual>(ActualValueDelegate<TActual>)

    Test whether the constraint is satisfied by a given reference. The default implementation simply dereferences the value but derived classes may override it to provide for delayed processing.

    Declaration
    public override ConstraintResult ApplyTo<TActual>(ActualValueDelegate<TActual> del)
    Parameters
    Type Name Description
    ActualValueDelegate<TActual> del

    A reference to the value delegate to be tested

    Returns
    Type Description
    ConstraintResult

    A ConstraintResult

    Type Parameters
    Name Description
    TActual

    The type of the actual value delegate to be tested.

    Exceptions
    Type Condition
    ArgumentNullException

    Throws a ArgumentNullException if the provided delegate is null.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)