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); }
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); }