void TerrainEffectorPropertytest::test_none_found() { ASSERT_NULL(m_world->m_location.m_loc); ASSERT_EQUAL(m_entity->m_location.m_loc, m_world); const TerrainProperty * res = m_property->getTerrain(m_entity); ASSERT_NULL(res); }
void TerrainEffectorPropertytest::test_none_found() { ASSERT_FALSE(m_world->m_location.m_parent); ASSERT_EQUAL(m_entity->m_location.m_parent.get(), m_world.get()); const TerrainProperty * res = m_property->getTerrain(m_entity.get()); ASSERT_NULL(res); }
void TerrainEffectorPropertytest::test_not_terrain() { ASSERT_NULL(m_world->m_location.m_loc); ASSERT_EQUAL(m_entity->m_location.m_loc, m_world); m_world->setProperty("terrain", new Property<Atlas::Message::MapType>); const TerrainProperty * res = m_property->getTerrain(m_entity); ASSERT_NULL(res); }