public static void TestEolianEinaValueInOwn() { var obj = new Dummy.TestObject(); using (Eina.Value v = new Eina.Value(Eina.ValueType.Int32)) { v.Set(2001); Test.AssertEquals(Eina.Ownership.Managed, v.Ownership); obj.SetValuePtrOwn(v); Test.AssertEquals(Eina.Ownership.Unmanaged, v.Ownership); Eina.Value v_received = obj.GetValuePtr(); Test.AssertEquals(Eina.Ownership.Unmanaged, v_received.Ownership); Test.AssertEquals(v, v_received); obj.ClearValue(); } }