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

CallAfterValidate_Element_Attribute_EndOfAttributes_ForChoice() private méthode

private CallAfterValidate_Element_Attribute_EndOfAttributes_ForChoice ( String after ) : void
after String
Résultat void
        public void CallAfterValidate_Element_Attribute_EndOfAttributes_ForChoice(String after)
        {
            XmlSchemaValidator val = CreateValidator(XSDFILE_GET_EXPECTED_PARTICLES);
            XmlSchemaInfo info = new XmlSchemaInfo();

            val.Initialize();
            val.ValidateElement("ChoiceElement", "", info);

            if (after == "attrib")
                val.ValidateAttribute("attr1", "", StringGetter("foo"), info);

            if (after == "endof")
            {
                val.ValidateAttribute("attr1", "", StringGetter("foo"), info);
                val.ValidateAttribute("attr2", "", StringGetter("foo"), info);
                val.ValidateEndOfAttributes(null);
            }

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

            return;
        }