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

docType_5() public method

public docType_5 ( ) : int
return int
        public int docType_5()
        {
            using (XmlWriter w = CreateWriter())
            {
                String docName = "Root";
                String docValue = "]>";
                w.WriteDocType(docName, null, null, docValue);
                w.WriteStartElement("Root");
                w.WriteEndElement();
            }
            string exp = IsIndent() ? "<!DOCTYPE Root []>]>" + Environment.NewLine + "<Root />" : "<!DOCTYPE Root []>]><Root />";
            return CompareString(exp) ? TEST_PASS : TEST_FAIL;
        }