public void GeneratesTheCorrectActionLink(string siteRoot, string actionName, string controllerName, RouteValueDictionary routeValues, bool relativeUrl, string expectedActionLink) { // Arrange var configurationService = GetConfigurationService(); configurationService.Current.SiteRoot = siteRoot; var urlHelper = TestUtility.MockUrlHelper(siteRoot); // Act var result = UrlHelperExtensions.GetActionLink(urlHelper, actionName, controllerName, relativeUrl, routeValues); // Assert Assert.Equal(expectedActionLink, result); }