public static void GetHINSTANCE() { Assert.Throws<ArgumentNullException>(() => Marshal.GetHINSTANCE(null)); IntPtr ptr = Marshal.GetHINSTANCE(typeof(int).Module); IntPtr ptr2 = Marshal.GetHINSTANCE(typeof(string).Module); Assert.Equal(ptr, ptr2); }