public int writeName_3() { using (XmlWriter w = CreateWriter()) { w.WriteStartElement("root"); w.WriteName("foo:bar"); w.WriteEndElement(); } return CompareReader("<root>foo:bar</root>") ? TEST_PASS : TEST_FAIL; }