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

◆ TestInsertRemoveUnique()

TFResult ScriptInvokerTests::TestInsertRemoveUnique ( )
inlineprivate

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

73 {
75
76 bool insert1 = m_Invoker.Insert(InvokeLog, EScriptInvokerInsertFlags.UNIQUE);
77 Assert(insert1);
78 bool remove1 = m_Invoker.Remove(InvokeLog);
79 Assert(remove1);
80 bool insert2 = m_Invoker.Insert(InvokeLog);
81 Assert(insert2);
82
83 m_Invoker.Invoke("TestInsertRemoveUnique");
84 bool count = Assert(m_InvokeCount == 1);
85
87
88 return BTFR(insert1 && remove1 && insert2 && count);
89 }
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().