public void IgnoreRoute1WithNullRouteCollectionThrows() { ExceptionHelper.ExpectArgumentNullException( delegate { RouteCollectionExtensions.IgnoreRoute(null, "foo"); }, "routes"); }
public static void RegisterRoutes(RouteCollection routes) { RouteCollectionExtensions.IgnoreRoute(routes, "{resource}.axd/{*pathInfo}"); RouteCollectionExtensions.MapRoute(routes, "Default", "{controller}/{action}/{id}", (object)new { controller = "Login", action = "Index", id = (UrlParameter)UrlParameter.Optional }); }
public void IgnoreRoute1WithNullRouteCollectionThrows() { Assert.ThrowsArgumentNull( delegate { RouteCollectionExtensions.IgnoreRoute(null, "foo"); }, "routes" ); }