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

CallForElementWithZeroMaxOccurs() private method

private CallForElementWithZeroMaxOccurs ( ) : void
return 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;
        }