Namespace Unity.Netcode.RuntimeTests
Classes
AddNetworkPrefabTest
AddNetworkPrefabTest.EmptyComponent
BufferDataValidationComponent
Used in conjunction with the RpcQueueTest to validate from 1 byte to (n) MaximumBufferSize
- Sending and Receiving a continually growing buffer up to (MaximumBufferSize)
- Default maximum buffer size is 1MB
ChildObjectComponent
Helper component for NetworkTransform parenting tests
ClientOnlyConnectionTests
ConnectionApprovalTests
DeferredMessageTestNetworkVariableComponent
DeferredMessageTestRpcAndNetworkVariableComponent
DeferredMessageTestRpcComponent
DeferredMessagingTest
DisconnectTests
ExampleTestComponent
HiddenVariableObject
HiddenVariableTest
HiddenVariableTests
IntegrationTestExtended
IntegrationTestPlayers
IntegrationTestSpawning
IntegrationTestUpdated
ListChangedObject
NamedMessageTests
NestedNetworkManagerTests
NetVarContainer
This is a refactor of the original test's NetworkBehaviour INetVarInfo derived NetworkBehaviours
NetVarPermTestComp
NetworkBehaviourGenericTests
This class is for testing general fixes or functionality of NetworkBehaviours
NetworkBehaviourGenericTests.SimpleNetworkBehaviour
NetworkBehaviourReferenceIntegrationTests
Integration tests for NetworkBehaviourReference
NetworkBehaviourReferenceTests
Unit tests to test:
- Serializing NetworkObject to NetworkObjectReference
- Deserializing NetworkObjectReference to NetworkObject
- Implicit operators of NetworkObjectReference
NetworkBehaviourUpdaterTests
NetworkBehaviourWithNetworkVariables
A simple test class that will provide varying NetworkBuffer stream sizes when the NetworkVariable is serialized
NetworkListChangedTestComponent
NetworkListChangedTests
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.
NetworkManagerCustomMessageManagerTests
NetworkManagerSceneManagerTests
NetworkManagerTransportTests
NetworkManagerTransportTests.FailedTransport
Does nothing but simulate a transport that can fail at startup and/or when polling events.
NetworkObjectDestroyTests
Tests calling destroy on spawned / unspawned NetworkObjects. Expected behavior:
- Server or client destroy on unspawned => Object gets destroyed, no exceptions
- Server destroy spawned => Object gets destroyed and despawned/destroyed on all clients. Server does not run
. Client runs it. - Client destroy spawned => throw exception.
NetworkObjectDontDestroyWithOwnerTests
NetworkObjectNetworkClientOwnedObjectsTests
NetworkObjectOnNetworkDespawnTests
Tests that check OnNetworkDespawn being invoked
NetworkObjectOnSpawnTests
NetworkObjectOwnershipComponent
NetworkObjectOwnershipTests
NetworkObjectReferenceTests
Unit tests to test:
- Serializing NetworkObject to NetworkObjectReference
- Deserializing NetworkObjectReference to NetworkObject
- Implicit operators of NetworkObjectReference
NetworkObjectSceneSerializationTests
NetworkObjectSpawnManyObjectsTests
NetworkObjectSpawnManyObjectsTests.SpawnObjecTrackingComponent
NetworkPrefabHandlerTests
The NetworkPrefabHandler unit tests validates: Registering with GameObject, NetworkObject, or GlobalObjectIdHash Newly assigned rotation or position values for newly spawned NetworkObject instances are valid Destroying a newly spawned NetworkObject instance works Removing a INetworkPrefabInstanceHandler is removed and can be verified (very last check)
NetworkPrefaInstanceHandler
The Prefab instance handler to use for this test
NetworkShowHideTestComponent
NetworkShowHideTests
NetworkSpawnManagerTests
NetworkTimeSystemTests
Runtime tests to test the network time system with the Unity player loop.
NetworkTransformStateTests
NetworkTransformTestComponent
Helper component for all NetworkTransformTests
NetworkTransformTests
Integration tests for NetworkTransform that will test both server and host operating modes and will test both authoritative models for each operating mode.
NetworkUpdateLoopTests
NetworkVarBufferCopyTest
NetworkVarBufferCopyTest.DummyNetBehaviour
NetworkVarBufferCopyTest.DummyNetVar
NetworkVariableNameTests
NetworkVariablePermissionTests
NetworkVariableTest
NetworkVariableTests
NetworkVariableUserSerializableTypesTests
NetworkVisibilityComponent
NetworkVisibilityTests
NonWorkingUserNetworkVariableComponent
OwnerModifiedObject
OwnerModifiedTests
PlayerLoopTimeTestComponent
PlayerObjectTests
RpcManyClientsObject
RpcManyClientsTests
RpcQueueTests
The RpcQueue unit tests validate:
- Maximum buffer size that can be sent (currently 1MB is the default maximum
MessageQueueHistoryFrame
size) - That all RPCs invoke at the appropriate
NetworkUpdateStage
(Client and Server) - A lower level
MessageQueueContainer
test that validatesMessageQueueFrameItems
after they have been put into the queue
RpcTests
RpcTests.RpcTestNB
ShowHideObject
SpawnTest
StartStopTests
StopStartRuntimeTests
TimeInitializationTest
Tests that the time and tick system are initialized properly
TimeIntegrationTest
Tests the times of two clients connecting to a server using the SIPTransport (returns 50ms RTT but has no latency simulation)
TransformInterpolationObject
TransformInterpolationTests
UnityObjectContext
UnityObjectContext<T>
Helper method for tests to create and destroy Unity Objects.
UnityTransportConnectionTests
UnityTransportDriverClient
UnityTransportTestHelpers
UnityTransportTestHelpers.TransportEventLogger
UnityTransportTests
UnnamedMessageTests
WorkingUserNetworkVariableComponent
WorkingUserNetworkVariableComponentBase
Used to help track instances of any child derived class
WorkingUserNetworkVariableComponentUsingExtensionMethod
Structs
MyTypeOne
MyTypeThree
MyTypeTwo
NetVarCombinationTypes
Used to define how many NetworkVariables to use per NetVarContainer instance. There are always two