Class NetworkBehaviourReferenceTests
Unit tests to test:
- Serializing NetworkObject to NetworkObjectReference
- Deserializing NetworkObjectReference to NetworkObject
- Implicit operators of NetworkObjectReference
Implements
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: solution.dll
Syntax
public class NetworkBehaviourReferenceTests : IDisposable
Constructors
NetworkBehaviourReferenceTests()
Declaration
public NetworkBehaviourReferenceTests()
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
FailSerializeGameObjectWithoutNetworkObject()
Declaration
public void FailSerializeGameObjectWithoutNetworkObject()
FailSerializeNonSpawnedNetworkObject()
Declaration
public void FailSerializeNonSpawnedNetworkObject()
FailSerializeNullBehaviour()
Declaration
public void FailSerializeNullBehaviour()
TestNetworkVariable()
Declaration
public void TestNetworkVariable()
TestRpc()
Declaration
[UnityTestAttribute]
public IEnumerator TestRpc()
Returns
Type | Description |
---|---|
IEnumerator |
TestRpcImplicitNetworkBehaviour()
Declaration
[UnityTestAttribute]
public IEnumerator TestRpcImplicitNetworkBehaviour()
Returns
Type | Description |
---|---|
IEnumerator |