I have the next routing.
routes.MapRoute("Companies", "Companies/{companyId}",
new { controller = "Company", action = "Details" },
new { companyId = @"\d+" });
Here is test which tests it.
"~/Companies/7".ShouldMapTo<CompanyController>(action => action.Details(7));
Now I want to test constraints. So url "~/Companies/df" shouldn't be mapped to the controller.
Does anyone know how to test it?
"~/Companies/df".ShouldBeIgnored();