Add wrapper info for generic array helper wrappers.
[mono.git] / mono / tests / safehandle.2.cs
index 376b7d7a0959903fc554952153ca7004b0c88b4c..1731e0490a668a736661c8dc980bf5d48a5218a4 100644 (file)
@@ -94,6 +94,17 @@ public class Tests {
                return 0;
        }
 
+       public static int test_0_marshal_safehandle_argument_null ()
+       {
+               try {
+                       mono_xr (null);
+               } catch (ArgumentNullException){
+                       return 0;
+               }
+               return 1;
+       }
+       
+
         [StructLayout (LayoutKind.Sequential)]
        public struct StringOnStruct {
                public string a;
@@ -198,6 +209,18 @@ public class Tests {
 
                return mono_safe_handle_struct_simple (s) == 2468 ? 0 : 1;
        }
+
+       public static int test_0_struct_empty ()
+       {
+               StructTest1 s = new StructTest1 ();
+
+               try {
+                       mono_safe_handle_struct_simple (s);
+               } catch (ArgumentNullException){
+                       return 0;
+               }
+               return 1;
+       }
        
        public static int test_0_sf_dispose ()
        {