Class ConnectionApprovalTimeoutTests
Inherited Members
Namespace: Unity.Netcode.RuntimeTests
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
[TestFixture(new object[] { ConnectionApprovalTimeoutTests.ApprovalTimedOutTypes.ServerDoesNotRespond })]
[TestFixture(new object[] { ConnectionApprovalTimeoutTests.ApprovalTimedOutTypes.ClientDoesNotRequest })]
public class ConnectionApprovalTimeoutTests : NetcodeIntegrationTest
Constructors
ConnectionApprovalTimeoutTests(ApprovalTimedOutTypes)
Declaration
public ConnectionApprovalTimeoutTests(ConnectionApprovalTimeoutTests.ApprovalTimedOutTypes approvalFailureType)
Parameters
| Type | Name | Description |
|---|---|---|
| ConnectionApprovalTimeoutTests.ApprovalTimedOutTypes | approvalFailureType |
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
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
OnSetup()
Called before creating and starting the server and clients Note: For AllTests and PerTest mode integration tests. For those two modes, if you want to have access to the server or client NetworkManagers then override OnServerAndClientsCreated(). m_ServerNetworkManager and m_ClientNetworkManagers
Declaration
protected override IEnumerator OnSetup()
Returns
| Type | Description |
|---|---|
| IEnumerator | An IEnumerator for use with Unity's coroutine system. |
Overrides
OnStartedServerAndClients()
Invoked after the server and clients have started. Note: No connection verification has been done at this point
Declaration
protected override IEnumerator OnStartedServerAndClients()
Returns
| Type | Description |
|---|---|
| IEnumerator | An IEnumerator for use with Unity's coroutine system. |
Overrides
OnTearDown()
Note: For PerTest mode this is called before ShutdownAndCleanUp.
Declaration
protected override IEnumerator OnTearDown()
Returns
| Type | Description |
|---|---|
| IEnumerator | An IEnumerator for use with Unity's coroutine system. |
Overrides
ValidateApprovalTimeout()
Declaration
[UnityTest]
public IEnumerator ValidateApprovalTimeout()
Returns
| Type | Description |
|---|---|
| IEnumerator |