System.Xml.Tests.TCGetExpectedParticles.CallForChoiceAfterValidating_1_2_ChoiceElement C# (CSharp) Méthode

CallForChoiceAfterValidating_1_2_ChoiceElement() private méthode

private CallForChoiceAfterValidating_1_2_ChoiceElement ( String elemAfter ) : void
elemAfter String
Résultat 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;
        }