예제 #1
0
 public static void ChangeWrapperHandleStrength()
 {
     if (PlatformDetection.IsWindows && !PlatformDetection.IsNetNative)
     {
         AssertExtensions.Throws <ArgumentNullException>("otp", () => Marshal.ChangeWrapperHandleStrength(null, true));
     }
     else
     {
         Assert.Throws <PlatformNotSupportedException>(() => Marshal.ChangeWrapperHandleStrength(null, true));
     }
 }