1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| #if ENABLE_UNIT_TESTS
|
| #include "UnitTest++.h"
|
| #include "../Debug-c-api.h"
| #include "../../Debug.h"
|
|
| SUITE(Debug)
| {
| TEST(ApiIsDebugPresentMatchesClassTest)
| {
| CHECK_EQUAL((int32_t)il2cpp::os::Debug::IsDebuggerPresent(), UnityPalIsDebuggerPresent());
| }
| }
|
| #endif // ENABLE_UNIT_TESTS
|
|