public int var_2()
{
using (XmlWriter w = CreateWriter())
{
w.WriteStartElement("Root");
w.WriteStartAttribute("attr");
w.WriteComment("This text is a comment");
w.WriteEndElement();
}
return CompareReader("<Root attr=''><!--This text is a comment--></Root>") ? TEST_PASS : TEST_FAIL;
}