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

CallForElementWithZeroMaxOccurs() private méthode

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

            val.Initialize();
            val.ValidateElement("MaxOccurs0Element", "", info);
            val.ValidateEndOfAttributes(null);

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

            return;
        }