Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/simulation2/components/tests/test_RangeManager.h
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | void tearDown() | ||||
CXeromyces::Terminate(); | CXeromyces::Terminate(); | ||||
} | } | ||||
// TODO It would be nice to call Verify() with the shore revealing system | // TODO It would be nice to call Verify() with the shore revealing system | ||||
// but that means testing on an actual map, with water and land. | // but that means testing on an actual map, with water and land. | ||||
void test_basic() | void test_basic() | ||||
{ | { | ||||
ComponentTestHelper test(g_ScriptRuntime); | ComponentTestHelper test(g_ScriptContext); | ||||
ICmpRangeManager* cmp = test.Add<ICmpRangeManager>(CID_RangeManager, "", SYSTEM_ENTITY); | ICmpRangeManager* cmp = test.Add<ICmpRangeManager>(CID_RangeManager, "", SYSTEM_ENTITY); | ||||
MockVision vision; | MockVision vision; | ||||
test.AddMock(100, IID_Vision, vision); | test.AddMock(100, IID_Vision, vision); | ||||
MockPosition position; | MockPosition position; | ||||
test.AddMock(100, IID_Position, position); | test.AddMock(100, IID_Position, position); | ||||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator