System.Xml.Tests.TC_SchemaSet_Misc.v111 C# (CSharp) Méthode

v111() private méthode

private v111 ( ) : void
Résultat void
        public void v111()
        {
            Initialize();

            XmlSchemaSet newSet = new XmlSchemaSet();
            newSet.XmlResolver = new XmlUrlResolver();
            newSet.ValidationEventHandler += new ValidationEventHandler(ValidationCallback);
            XmlSchema chameleon = newSet.Add(null, Path.Combine(TestData._Root, "EmployeeTypes.xsd"));
            newSet.Compile();

            CError.Compare(newSet.GlobalTypes.Count, 10, "GlobalTypes count mismatch!");

            XmlSchemaSet sc = new XmlSchemaSet();
            sc.XmlResolver = new XmlUrlResolver();
            sc.ValidationEventHandler += new ValidationEventHandler(ValidationCallback);
            sc.Add(chameleon);
            sc.Add(null, Path.Combine(TestData._Root, "baseEmployee.xsd"));
            sc.Compile();

            CError.Compare(warningCount, 0, "Warning Count mismatch!");
            CError.Compare(errorCount, 0, "Error Count mismatch!");

            return;
        }