public void v9()
{
bWarningCallback = false;
bErrorCallback = false;
XmlSchemaSet sc = new XmlSchemaSet();
sc.XmlResolver = new XmlUrlResolver();
sc.ValidationEventHandler += new ValidationEventHandler(ValidationCallback);
XmlSchema Schema1 = sc.Add(null, Path.Combine(TestData._Root, "reprocess_v9_a.xsd"));
CError.Compare(sc.Count, 2, "Count after add");
CError.Compare(sc.Contains(Schema1), true, "Contains after add");
sc.Compile();
CError.Compare(sc.Count, 2, "Count");
CError.Compare(sc.Contains(Schema1), true, "Contains");
//edit
XmlSchemaImport imp = new XmlSchemaImport();
imp.Namespace = "ns-c";
imp.SchemaLocation = "reprocess_v9_c.xsd";
Schema1.Includes.Add(imp);
sc.Reprocess(Schema1);
CError.Compare(bWarningCallback, false, "Warning");
CError.Compare(bErrorCallback, false, "Error");
CError.Compare(sc.Count, 3, "Count");
CError.Compare(sc.Contains(Schema1), true, "Contains");
CError.Compare(sc.IsCompiled, false, "IsCompiled");
sc.Compile();
CError.Compare(sc.IsCompiled, true, "IsCompiled");
CError.Compare(Schema1.IsCompiled, true, "IsCompiled on SOM");
return;
}