Class NetworkVariableTraitsTests
Inheritance
NetworkVariableTraitsTests
Assembly: Unity.Netcode.RuntimeTests.dll
Syntax
public class NetworkVariableTraitsTests : NetcodeIntegrationTest
Properties
NumberOfClients
Declaration
protected override int NumberOfClients { get; }
Property Value
Overrides
m_EnableTimeTravel
Declaration
protected override bool m_EnableTimeTravel { get; }
Property Value
Overrides
m_SetupIsACoroutine
Declaration
protected override bool m_SetupIsACoroutine { get; }
Property Value
Overrides
m_TearDownIsACoroutine
Declaration
protected override bool m_TearDownIsACoroutine { get; }
Property Value
Overrides
Methods
GetServerComponent()
Declaration
public NetworkVariableTraitsComponent GetServerComponent()
Returns
GetTestComponent()
Declaration
public NetworkVariableTraitsComponent GetTestComponent()
Returns
OnPlayerPrefabGameObjectCreated()
Declaration
protected override void OnPlayerPrefabGameObjectCreated()
Overrides
WhenNewValueIsGreaterThanThresholdButMinTimeHasNotPassed_VariableIsNotSerialized()
Declaration
[Test]
public void WhenNewValueIsGreaterThanThresholdButMinTimeHasNotPassed_VariableIsNotSerialized()
WhenNewValueIsGreaterThanThreshold_VariableIsSerialized()
Declaration
[Test]
public void WhenNewValueIsGreaterThanThreshold_VariableIsSerialized()
WhenNewValueIsLessThanThresholdButMaxTimeHasPassed_VariableIsSerialized()
Declaration
[Test]
public void WhenNewValueIsLessThanThresholdButMaxTimeHasPassed_VariableIsSerialized()
WhenNewValueIsLessThanThreshold_VariableIsNotSerialized()
Declaration
[Test]
public void WhenNewValueIsLessThanThreshold_VariableIsNotSerialized()
WhenNoThresholdIsSetButMinTimeHasNotPassed_VariableIsNotSerialized()
Declaration
[Test]
public void WhenNoThresholdIsSetButMinTimeHasNotPassed_VariableIsNotSerialized()