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

CallForChoiceAfterValidating_1_2_ChoiceElement() private method

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

            string elem = elemAfter;

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

            val.ValidateElement(elem, "", info);
            val.SkipToEndElement(info);

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

            return;
        }