System.Xml.Tests.TC_SchemaSet_Imports.v20 C# (CSharp) Méthode

v20() private méthode

private v20 ( ) : void
Résultat void
        public void v20()
        {
            XmlSchemaSet sc = new XmlSchemaSet();
            sc.XmlResolver = new XmlUrlResolver();
            XmlSchema parent = sc.Add(null, Path.Combine(TestData._Root, "import_v20_a.xsd"));
            CError.Compare(sc.Count, 4, "Count");

            sc.Compile();
            // try to add each individually
            XmlSchema b = sc.Add(null, Path.Combine(TestData._Root, "import_v20_b.xsd"));
            XmlSchema c = sc.Add(null, Path.Combine(TestData._Root, "import_v20_c.xsd"));
            XmlSchema d = sc.Add(null, Path.Combine(TestData._Root, "import_v20_d.xsd"));

            CError.Compare(sc.Count, 4, "Count");
            CError.Compare(sc.IsCompiled, true, "IsCompiled");
            CError.Compare(b.SourceUri.Contains("import_v20_b.xsd"), true, "Compare B");
            CError.Compare(c.SourceUri.Contains("import_v20_c.xsd"), true, "Compare C");
            CError.Compare(d.SourceUri.Contains("import_v20_d.xsd"), true, "Compare D");

            return;
        }