Esempio n. 1
0
 public void HtmlHasRightBodyElement()
 {
     var document = new HtmlDocument();
     var root = new HtmlHtmlElement(document);
     document.AppendChild(root);
     var body = new HtmlBodyElement(document);
     root.AppendChild(body);
     Assert.AreEqual(body, document.Body);
 }
Esempio n. 2
0
 public void HtmlHasRightHeadElement()
 {
     var document = new HtmlDocument();
     var root = new HtmlHtmlElement(document);
     document.AppendChild(root);
     var head = new HtmlHeadElement(document);
     root.AppendChild(head);
     Assert.AreEqual(head, document.Head);
 }