Esempio n. 1
0
        public void HtmlHasRightBodyElement()
        {
            var doc  = new HTMLDocument();
            var root = new HTMLHtmlElement();

            doc.AppendChild(root);
            var body = new HTMLBodyElement();

            root.AppendChild(body);
            Assert.AreEqual(body, doc.Body);
        }
Esempio n. 2
0
        public void HtmlHasRightHeadElement()
        {
            var doc  = new HTMLDocument();
            var root = new HTMLHtmlElement();

            doc.AppendChild(root);
            var head = new HTMLHeadElement();

            root.AppendChild(head);
            Assert.AreEqual(head, doc.Head);
        }