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

comment_1() public method

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