示例#1
0
        public void test_outer_text_domelement()
        {
            DomDocument doc = new DomDocument();
            var html = doc.AppendText("leading ws");
            string htmlText = "leading ws";

            Assert.That(html.OuterText, Is.EqualTo(htmlText));
            Assert.That(html.ToString(), Is.EqualTo(htmlText));

            Assert.That(doc.OuterText, Is.EqualTo(htmlText));
            Assert.That(doc.ToString(), Is.EqualTo(htmlText));
        }