public void PassNull() { XmlSchemaValidator val = CreateValidator(new XmlSchemaSet()); try { val.AddSchema(null); } catch (ArgumentNullException) { return; } Assert.True(false); }