public static void GetObjectData_InvalidArgs_Throws() { var os = new OperatingSystem(PlatformID.Win32NT, new Version(10, 0)); Assert.Throws<ArgumentNullException>("info", () => os.GetObjectData(null, new StreamingContext())); } }