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