mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
Add assertions around registerObjects
This commit is contained in:
parent
24f8e6ff87
commit
7c46789a9e
1 changed files with 2 additions and 2 deletions
|
|
@ -8,10 +8,10 @@
|
||||||
TEST(InspectorFieldTest, SetData_Should_Update_The_Field)
|
TEST(InspectorFieldTest, SetData_Should_Update_The_Field)
|
||||||
{
|
{
|
||||||
GuiInspector* inspector = new GuiInspector();
|
GuiInspector* inspector = new GuiInspector();
|
||||||
inspector->registerObject();
|
ASSERT_TRUE(inspector->registerObject());
|
||||||
|
|
||||||
ParticleData* exampleObj = new ParticleData();
|
ParticleData* exampleObj = new ParticleData();
|
||||||
exampleObj->registerObject();
|
ASSERT_TRUE(exampleObj->registerObject());
|
||||||
// Add it to inspector so inspector field can find it
|
// Add it to inspector so inspector field can find it
|
||||||
inspector->addInspectObject(exampleObj);
|
inspector->addInspectObject(exampleObj);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue