System.Xml.Tests.TC_SchemaSet_Misc.v24 C# (CSharp) 메소드

v24() 개인적인 메소드

private v24 ( ) : void
리턴 void
        public void v24()
        {
            string attName = "lang";
            string newtype = "decimal";

            XmlSchemaSet ss = new XmlSchemaSet();
            ss.XmlResolver = new XmlUrlResolver();
            ss.Add(null, Path.Combine(TestData._Root, "bug338038_v3.xsd"));
            ss.Compile();
            ss.Add(null, Path.Combine(TestData._Root, "bug338038_v3a.xsd"));
            ss.Compile();

            CError.Compare(ss.Count, 4, "Count of SchemaSet not matched!");

            foreach (XmlSchemaAttribute a in ss.GlobalAttributes.Values)
            {
                if (a.QualifiedName.Name == attName)
                {
                    CError.Compare(a.AttributeSchemaType.QualifiedName.Name, newtype, "Incorrect type for xml:lang");
                    return;
                }
            }

            Assert.True(false);
        }