Class IntegrationTestExtended
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
[TestFixture(new object[] { NetcodeIntegrationTest.HostOrServer.Host })]
[TestFixture(new object[] { NetcodeIntegrationTest.HostOrServer.Server })]
public class IntegrationTestExtended : NetcodeIntegrationTest
Constructors
IntegrationTestExtended(HostOrServer)
Declaration
public IntegrationTestExtended(NetcodeIntegrationTest.HostOrServer hostOrServer)
Parameters
| Type | Name | Description |
|---|---|---|
| NetcodeIntegrationTest.HostOrServer | hostOrServer |
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
MyFirstIntegationTest()
Declaration
[UnityTest]
public IEnumerator MyFirstIntegationTest()
Returns
| Type | Description |
|---|---|
| IEnumerator |
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()