public int writeString_12()
{
using (XmlWriter w = CreateWriter())
{
w.WriteStartElement("Root", "");
w.WriteStartAttribute("a1", "");
w.WriteString("x\ny");
w.WriteEndElement();
}
return CompareReader("<Root a1=\"x
y\" />") ? TEST_PASS : TEST_FAIL;
}