System.Xml.Tests.TC_SchemaSet_Misc.v118 C# (CSharp) Method

v118() private method

private v118 ( ) : void
return void
        public void v118()
        {
            using (XmlReader r = new XmlTextReader(Path.Combine(TestData._Root, "Bug424904.xsd")))
            {
                XmlSchema s = XmlSchema.Read(r, null);
                XmlSchemaSet set = new XmlSchemaSet();
                set.XmlResolver = new XmlUrlResolver();
                set.Add(s);
                set.Compile();

                XmlQualifiedName name = new XmlQualifiedName("test2", "http://foo");
                XmlSchemaComplexType test2type = s.SchemaTypes[name] as XmlSchemaComplexType;
                XmlSchemaParticle p = test2type.ContentTypeParticle;
                XmlAttribute[] att = p.UnhandledAttributes;

                Assert.False(att == null || att.Length < 1);
            }
        }