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

CallForElementWithZeroMinOccurs() private méthode

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

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

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

            return;
        }