+ ObjectRegistry anotherRegistry(myRegistry);
+
+ DALI_TEST_EQUALS(myRegistry, anotherRegistry, TEST_LOCATION);
+ END_TEST;
+}
+
+int UtcDaliObjectRegistryMoveConstructor(void)
+{
+ TestApplication application;
+
+ ObjectRegistry registry = application.GetCore().GetObjectRegistry();
+ DALI_TEST_CHECK(registry);
+ DALI_TEST_EQUALS(2, registry.GetBaseObject().ReferenceCount(), TEST_LOCATION);
+
+ ObjectRegistry move = std::move(registry);
+ DALI_TEST_CHECK(move);
+
+ // Check that object is moved (not copied, so ref count keeps the same)
+ DALI_TEST_EQUALS(2, move.GetBaseObject().ReferenceCount(), TEST_LOCATION);
+ DALI_TEST_CHECK(!registry);
+
+ END_TEST;
+}
+
+int UtcDaliObjectRegistryMoveAssignment(void)
+{
+ TestApplication application;
+
+ ObjectRegistry registry = application.GetCore().GetObjectRegistry();
+ DALI_TEST_CHECK(registry);
+ DALI_TEST_EQUALS(2, registry.GetBaseObject().ReferenceCount(), TEST_LOCATION);
+
+ ObjectRegistry move;
+ move = std::move(registry);
+ DALI_TEST_CHECK(move);
+
+ // Check that object is moved (not copied, so ref count keeps the same)
+ DALI_TEST_EQUALS(2, move.GetBaseObject().ReferenceCount(), TEST_LOCATION);
+ DALI_TEST_CHECK(!registry);