docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ConditionalPredicateBase

    Derive from this class to create your own conditional handling for your NetcodeIntegrationTest integration tests when dealing with more complicated scenarios where initializing values, storing state to be used across several integration tests.

    Inheritance
    object
    ConditionalPredicateBase
    MessageHooksConditional
    Implements
    IConditionalPredicate
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Netcode.TestHelpers.Runtime
    Assembly: Unity.Netcode.TestHelpers.Runtime.dll
    Syntax
    public class ConditionalPredicateBase : IConditionalPredicate

    Properties

    TimedOut

    Declaration
    public bool TimedOut { get; }
    Property Value
    Type Description
    bool

    Methods

    Finished(bool)

    Wait for condition has finished: Condition(s) met or timed out

    Declaration
    public void Finished(bool timedOut)
    Parameters
    Type Name Description
    bool timedOut

    HasConditionBeenReached()

    Test the conditions of the test to be reached

    Declaration
    public bool HasConditionBeenReached()
    Returns
    Type Description
    bool

    OnFinished()

    Declaration
    protected virtual void OnFinished()

    OnHasConditionBeenReached()

    Declaration
    protected virtual bool OnHasConditionBeenReached()
    Returns
    Type Description
    bool

    OnStarted()

    Declaration
    protected virtual void OnStarted()

    Started()

    Wait for condition has started

    Declaration
    public void Started()

    Implements

    IConditionalPredicate
    In This Article
    Back to top
    Copyright © 2024 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)