Ejemplo n.º 1
0
        //
        // Test cases:
        //
        public static void return_same_object()
        {
            var testing = new Dummy.TestObject();
            var o1      = testing.ReturnObject();

            Test.Assert(o1.NativeHandle != IntPtr.Zero);
            Test.Assert(o1.NativeHandle == testing.NativeHandle);
            var o2 = o1.ReturnObject();

            Test.Assert(o2.NativeHandle != IntPtr.Zero);
            Test.Assert(o2.NativeHandle == o1.NativeHandle);
        }