System.Xml.Tests.TCDocType.docType_2 C# (CSharp) Method

docType_2() public method

public docType_2 ( ) : int
return int
        public int docType_2()
        {
            using (XmlWriter w = CreateWriter())
            {
                w.WriteDocType("test", null, null, "<!ENTITY e 'abc'>");
                w.WriteStartElement("Root");
                w.WriteEndElement();
            }
            string exp = IsIndent() ? 
                "<!DOCTYPE test [<!ENTITY e 'abc'>]>" + Environment.NewLine + "<Root />" :
                "<!DOCTYPE test [<!ENTITY e 'abc'>]><Root />";
            return CompareString(exp) ? TEST_PASS : TEST_FAIL;
        }