public void InitializeWithTypeValidateElement()
{
XmlSchemaValidator val;
XmlSchemaInfo info = new XmlSchemaInfo();
XmlSchemaSet schemas = new XmlSchemaSet();
schemas.Add("", Path.Combine(TestData, XSDFILE_PARTIAL_VALIDATION));
schemas.Compile();
val = CreateValidator(schemas);
val.Initialize(schemas.GlobalTypes[new XmlQualifiedName("PartialType")]);
try
{
val.ValidateElement("PartialElement", "", info);
}
catch (XmlSchemaValidationException)
{
Assert.True(false);
}
return;
}