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.
Implements
Inherited Members
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()