Example #1
0
 //
 // Test cases:
 //
 public static void return_same_object()
 {
     test.Testing testing = new test.TestingConcrete();
     test.Testing o1      = testing.ReturnObject();
     Test.Assert(o1.raw_handle != IntPtr.Zero);
     Test.Assert(o1.raw_handle == testing.raw_handle);
     test.Testing o2 = o1.ReturnObject();
     Test.Assert(o2.raw_handle != IntPtr.Zero);
     Test.Assert(o2.raw_handle == o1.raw_handle);
 }