Пример #1
0
        public void Children_should_equal_the_document_element()
        {
            var doc  = new DomDocument();
            var node = doc.AppendElement("root");

            doc.PrependDocumentType("html");
            Assert.HasCount(1, doc.Children);
            Assert.Equal("root", doc.Children[0].NodeName);
        }