docs.unity3d.com
    Show / Hide Table of Contents

    Class NetworkListTestPredicate

    Handles the more generic conditional logic for NetworkList tests which can be used with the WaitForConditionOrTimeOut(Func<Boolean>, TimeoutHelper) that accepts anything derived from the ConditionalPredicateBase class as a parameter.

    Inheritance
    Object
    ConditionalPredicateBase
    NetworkListTestPredicate
    Inherited Members
    ConditionalPredicateBase.TimedOut
    ConditionalPredicateBase.HasConditionBeenReached()
    ConditionalPredicateBase.OnStarted()
    ConditionalPredicateBase.Started()
    ConditionalPredicateBase.Finished(Boolean)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.Netcode.RuntimeTests
    Syntax
    public class NetworkListTestPredicate : ConditionalPredicateBase, IConditionalPredicate

    Constructors

    NetworkListTestPredicate(NetworkVariableTest, NetworkVariableTest, NetworkListTestPredicate.NetworkListTestStates, Int32)

    Declaration
    public NetworkListTestPredicate(NetworkVariableTest player1OnServer, NetworkVariableTest player1OnClient1, NetworkListTestPredicate.NetworkListTestStates networkListTestState, int elementCount)
    Parameters
    Type Name Description
    NetworkVariableTest player1OnServer
    NetworkVariableTest player1OnClient1
    NetworkListTestPredicate.NetworkListTestStates networkListTestState
    Int32 elementCount

    Methods

    OnFinished()

    When finished, check if a time out occurred and if so assert and provide meaningful information to troubleshoot why

    Declaration
    protected override void OnFinished()
    Overrides
    ConditionalPredicateBase.OnFinished()

    OnHasConditionBeenReached()

    Determines if the condition has been reached for the current NetworkListTestState

    Declaration
    protected override bool OnHasConditionBeenReached()
    Returns
    Type Description
    Boolean
    Overrides
    ConditionalPredicateBase.OnHasConditionBeenReached()

    SetNetworkListTestState(NetworkListTestPredicate.NetworkListTestStates)

    Declaration
    public void SetNetworkListTestState(NetworkListTestPredicate.NetworkListTestStates networkListTestState)
    Parameters
    Type Name Description
    NetworkListTestPredicate.NetworkListTestStates networkListTestState
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 26 October 2023