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