Module |
|
Header |
/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Classes/UnitTest.h |
Include |
#include "UnitTest.h" |
enum EUnitTestResetStage
{
None,
FullReset,
ResetConnection,
ResetExecute,
}
Name |
Description |
---|---|
None |
No reset stage |
FullReset |
Resets the entire unit test, allowing restart from the beginning |
ResetConnection |
For ClientUnitTest's, resets the net connection and minimal client - but not the server - allowing a restart from connecting |
ResetExecute |
Resets unit tests to the point prior to 'ExecuteUnitTest' - usually implemented individually per unit test |
The different stages that unit tests can be reset to - a global/non-locally-customizable list, for now NOTE: Stages MUST be sequential! (e.g. ResetConnection implies ResetExecute, FullReset implies both ResetConnection and ResetExecute) NOTE: Apart from checking for 'None', all comparisons should be either <= or >=, to support potential enum additions