Class NetworkTimeSystemTests
Runtime tests to test the network time system with the Unity player loop.
Inheritance
NetworkTimeSystemTests
Assembly: solution.dll
Syntax
public class NetworkTimeSystemTests
Methods
CorrectAmountTicksTest()
Tests whether the time system invokes the correct amount of ticks over a period of time.
Note we cannot test against Time.Time directly because of floating point precision. Our time is more precise leading to different results.
Declaration
[UnityTestAttribute]
public IEnumerator CorrectAmountTicksTest()
Returns
PlayerLoopFixedTimeTest()
Declaration
[UnityTestAttribute]
public IEnumerator PlayerLoopFixedTimeTest()
Returns
PlayerLoopTimeTest_WithDifferentTimeScale(float)
Tests whether time is accessible and has correct values inside Update, for multiples timeScale values.
Declaration
[UnityTestAttribute]
public IEnumerator PlayerLoopTimeTest_WithDifferentTimeScale(float timeScale)
Parameters
Type |
Name |
Description |
float |
timeScale |
|
Returns
Setup()
Declaration
TearDown()
Declaration