public void ReturnAUrlHelper_WhenCalledWithANonNullRequestContext() { var factory = new UrlHelperFactory(); var urlHelper = factory.Create(new RequestContext()); Assert.IsInstanceOf <UrlHelper>(urlHelper); }
public void ThrowAnException_WhenCalledWithANullRequestContext() { var factory = new UrlHelperFactory(); Assert.Throws <ArgumentNullException>(() => factory.Create(null)); }