System.Xml.Tests.TCValidateAfterAddInvalidSchema.AddValid_Import_Include_Redefine C# (CSharp) Method

AddValid_Import_Include_Redefine() private method

private AddValid_Import_Include_Redefine ( String testDir, String testFile, int expCount, int expCountGT, int expCountGE ) : void
testDir String
testFile String
expCount int
expCountGT int
expCountGE int
return void
        public void AddValid_Import_Include_Redefine(String testDir, String testFile, int expCount, int expCountGT, int expCountGE)
        {
            string xsd = Path.Combine(path, testDir, testFile);

            XmlSchemaSet ss = new XmlSchemaSet();
            ss.XmlResolver = new XmlUrlResolver();
            XmlSchema Schema = XmlSchema.Read(XmlReader.Create(xsd), null);
            XmlSchema Schema1 = ss.Add(Schema);
            ValidateSchemaSet(ss, expCount, false, 0, 0, 0, "Validation after add");

            ss.Compile();
            ValidateSchemaSet(ss, expCount, true, expCountGT, expCountGE, 0, "Validation after add/comp");

            foreach (XmlSchema sc in ss.Schemas())
                ss.Reprocess(sc);
            ValidateSchemaSet(ss, expCount, false, 1, 0, 0, "Validation after repr");

            ss.Compile();
            ValidateSchemaSet(ss, expCount, true, expCountGT, expCountGE, 0, "Validation after repr/comp");

            ValidateWithSchemaInfo(ss);
            return;
        }