System.Xml.Tests.TCGetExpectedParticles.CallForAllAfterValidatingBothElements C# (CSharp) Method

CallForAllAfterValidatingBothElements() private method

private CallForAllAfterValidatingBothElements ( ) : void
return void
        public void CallForAllAfterValidatingBothElements()
        {
            XmlSchemaValidator val = CreateValidator(XSDFILE_GET_EXPECTED_PARTICLES);
            XmlSchemaInfo info = new XmlSchemaInfo();

            val.Initialize();
            val.ValidateElement("AllElement", "", info);
            val.ValidateAttribute("attr1", "", StringGetter("foo"), info);
            val.ValidateAttribute("attr2", "", StringGetter("foo"), info);
            val.ValidateEndOfAttributes(null);

            foreach (string elem in new string[] { "elem1", "elem2" })
            {
                val.ValidateElement(elem, "", info);
                val.SkipToEndElement(info);
            }

            CheckExpectedElements(val.GetExpectedParticles(), new XmlQualifiedName[] { });

            return;
        }