public void NestBetweenValidateAttributeCalls()
{
XmlSchemaValidator val = CreateValidator(XSDFILE_VALIDATE_ATTRIBUTE);
ArrayList atts = new ArrayList();
val.Initialize();
val.ValidateElement("MixedAttributesElement", "", null);
val.GetUnspecifiedDefaultAttributes(atts);
CheckDefaultAttributes(atts, new string[] { "def1", "def2" });
val.ValidateAttribute("req1", "", StringGetter("foo"), null);
atts.Clear();
val.GetUnspecifiedDefaultAttributes(atts);
CheckDefaultAttributes(atts, new string[] { "def1", "def2" });
val.ValidateAttribute("req2", "", StringGetter("foo"), null);
atts.Clear();
val.GetUnspecifiedDefaultAttributes(atts);
CheckDefaultAttributes(atts, new string[] { "def1", "def2" });
return;
}