20 ErrorEx(
"Trying to And while one of the results are PENDING.");
33 ErrorEx(
"Trying to Or while one of the results are PENDING.");
63 ErrorEx(
string.Format(
"Failed to call function \'%1\' on \'%2\'", m_Test,
m_Instance.GetDebugName()));
64 m_Result.Result =
TFR.FAIL;
153 Print(
"- Active tests -------------------------");
156 Print(
"----------------------------------------");
158 ErrorEx(
"Not all tests are done while run was fatal.");
181 return res !=
TFR.PENDING;
TFResult NTFR(TFR result)
class TFModule m_OnInitModule
Test Framework.
TFResult Or(TFResult other)
bool Assert(bool condition)
void TFResult(TFR result)
TFResult And(TFResult other)
ref TFModule m_OnFrameModule
void AddFrameTest(string test)
void AddInitTest(string test)
override void EOnInit(IEntity other, int extra)
TFResult BTFR(bool result)
override void EOnFrame(IEntity other, float timeSlice)
array< ref TFResult > TFResultArr
Super root of all classes in Enforce script.
static void TFLog(string message=LOG_DEFAULT, TestFramework caller=null, string function="")
ref array< string > m_FailedTests
ref array< string > m_SucceededTests
ref TFResultArr m_Results
void PrintResult(string prefix="", TestFramework caller=null, string function="")
bool RunTest(TFCaller caller, float dt)
void AddTest(Class instance, string test, bool repeat)
bool Run(bool fatal, float dt)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
void TFCaller(Class instance, string test, TFResult result)
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.
EntityEvent
Entity events for event-mask, or throwing event from code.
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.