public static void GetIDispatchForObject() { Assert.Throws<PlatformNotSupportedException>(() => Marshal.GetIDispatchForObject(null)); }