public int lookupPrefix_9()
{
using (XmlWriter w = CreateWriter())
{
w.WriteStartElement("x", "Root", "foo");
w.WriteStartElement("y", "node", "foo");
w.WriteEndElement();
string s = w.LookupPrefix("foo");
CError.Compare(s, "x", "Error");
w.WriteEndElement();
}
return TEST_PASS;
}