public void ThrowsExceptionWhenCreatedWithNullHtmlElementTest() { Action action = () => new AncestorHtmlElementFinder<HtmlElement>((HtmlElement)null); action.ShouldThrow<ArgumentNullException>(); }