Beispiel #1
0
        public void AddHead_DocumentHasBody_ThrowsInvalidOperationException()
        {
            HtmlDocument document = new HtmlDocument()
            {
                Head = Tag.Head
            };

            Assert.Throws <InvalidOperationException>(() => document.AddHead());
        }
 public void AddHead_DocumentHasBody_ThrowsInvalidOperationException()
 {
     HtmlDocument document = new HtmlDocument() { Head = Tag.Head };
     Assert.Throws<InvalidOperationException>(() => document.AddHead());
 }