public void MailToWithoutEmailThrowsArgumentNullException() { HtmlHelper html = MvcHelper.GetHtmlHelperWithPath(new ViewDataDictionary()); ExceptionHelper.ExpectArgumentNullException(() => html.Mailto("link text", null), "emailAddress"); }
public void MailToWithoutLinkTextThrowsArgumentNullException() { HtmlHelper html = MvcHelper.GetHtmlHelperWithPath(new ViewDataDictionary()); Assert.ThrowsArgumentNull(() => html.Mailto(null, "*****@*****.**"), "linkText"); }
public void RenderRouteWithNullRouteValueDictionaryThrowsException() { HtmlHelper html = MvcHelper.GetHtmlHelperWithPath(new ViewDataDictionary(), "/"); ExceptionHelper.ExpectArgumentNullException(() => html.RenderRoute(null), "routeValues"); }
public void ImageWithEmptyRelativeUrlThrowsArgumentNullException() { HtmlHelper html = MvcHelper.GetHtmlHelperWithPath(new ViewDataDictionary()); ExceptionHelper.ExpectArgumentExceptionNullOrEmpty(() => html.Image(null), "imageRelativeUrl"); }