public int attribute_18() { using (XmlWriter w = CreateWriter()) { w.WriteStartElement("Root"); w.WriteStartAttribute("a"); w.WriteString("test"); w.WriteEndElement(); } return CompareReader("<Root a=\"test\" />") ? TEST_PASS : TEST_FAIL; }