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