System.Xml.Tests.TCAutoComplete.var_2 C# (CSharp) Method

var_2() public method

public var_2 ( ) : int
return int
        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;
        }