System.Xml.Tests.TCFullEndElement.TCComment.comment_2 C# (CSharp) Method

comment_2() public method

public comment_2 ( ) : int
return int
            public int comment_2()
            {
                using (XmlWriter w = CreateWriter())
                {
                    w.WriteStartElement("Root");
                    w.WriteComment(String.Empty);
                    w.WriteEndElement();
                }
                return CompareReader("<Root><!----></Root>") ? TEST_PASS : TEST_FAIL;
            }