public void ValidateTopLevelAttribute()
{
XmlSchemaValidator val;
XmlSchemaSet schemas = new XmlSchemaSet();
XmlSchemaInfo info = new XmlSchemaInfo();
schemas.Add("", Path.Combine(TestData, XSDFILE_200_DEF_ATTRIBUTES));
schemas.Compile();
val = CreateValidator(schemas);
val.Initialize();
val.ValidateAttribute("BasicAttribute", "", "foo", info);
Assert.Equal(info.SchemaAttribute, schemas.GlobalAttributes[new XmlQualifiedName("BasicAttribute")]);
return;
}