DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ TestFirstUnique()

TFResult ScriptInvokerTests::TestFirstUnique ( )
inlineprivate

См. определение в файле ScriptInvokerTests.c строка 34

35 {
37
38 bool insert1 = m_Invoker.Insert(InvokeLog, EScriptInvokerInsertFlags.UNIQUE);
39 Assert(insert1);
40 bool insert2 = m_Invoker.Insert(InvokeLog);
41 Assert(!insert2);
42
43 m_Invoker.Invoke("TestFirstUnique");
44 bool count = Assert(m_InvokeCount == 1);
45
47
48 return BTFR(insert1 && !insert2 && count);
49 }
EScriptInvokerInsertFlags
Определения tools.c:130
bool Assert(bool condition)
Определения TestFramework.c:262
TFResult BTFR(bool result)
Определения TestFramework.c:278
void InvokeLog(string s)
Определения ScriptInvokerTests.c:163
void InvokeReset()
Определения ScriptInvokerTests.c:169
int m_InvokeCount
Определения ScriptInvokerTests.c:4
ref ScriptInvoker m_Invoker
Определения ScriptInvokerTests.c:3

Перекрестные ссылки Assert(), BTFR(), InvokeLog(), InvokeReset(), m_InvokeCount, m_Invoker и TFResult().