Class IntegrationTestSpawning
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
public class IntegrationTestSpawning : NetcodeIntegrationTest
Properties
NumberOfClients
Gets the number of clients to be created for the integration test.
Declaration
protected override int NumberOfClients { get; }
Property Value
| Type | Description |
|---|---|
| int |
Overrides
Methods
OnServerAndClientsConnected()
Invoked after the server and clients have started and verified their connections with each other.
Declaration
protected override IEnumerator OnServerAndClientsConnected()
Returns
| Type | Description |
|---|---|
| IEnumerator | An IEnumerator for use with Unity's coroutine system. |
Overrides
OnServerAndClientsCreated()
This is invoked before the server and client(s) are started. Override this method if you want to make any adjustments to their NetworkManager instances.
Declaration
protected override void OnServerAndClientsCreated()
Overrides
OnSetIntegrationTestMode()
The very first thing invoked during the OneTimeSetup() that determines how this integration test handles NetworkManager instantiation and destruction. NetcodeIntegrationTest.NetworkManagerInstatiationMode Override this method to change the default mode: AllTests
Declaration
protected override NetcodeIntegrationTest.NetworkManagerInstatiationMode OnSetIntegrationTestMode()
Returns
| Type | Description |
|---|---|
| NetcodeIntegrationTest.NetworkManagerInstatiationMode | The NetworkManager instantiation mode to be used for the integration test. |
Overrides
TestDespawnNetworkObjects()
Declaration
[UnityTest]
[Order(2)]
public IEnumerator TestDespawnNetworkObjects()
Returns
| Type | Description |
|---|---|
| IEnumerator |
TestRelativeNetworkObjects()
Declaration
[UnityTest]
[Order(1)]
public IEnumerator TestRelativeNetworkObjects()
Returns
| Type | Description |
|---|---|
| IEnumerator |