0

I found several questions on StackOverflow wondering what libraries or what best practices. Are all very usable for noobs, help me a lot.

What libs exist to test .Net MVC Routes?

I found Fluent route tester in MvcContrib where i got some problems to test with PostMethods.

Exist another librarys like MVCContrib to test Routes?

Update:

I say Test a .Net MVC Routes:

routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

routes.MapRoute(
    "Default", // Route name
    "{controller}/{action}/{id}", // URL with parameters
    new { controller = "Usuario", action = "Index", id = UrlParameter.Optional } // Parameter defaults
);

Librarys to test if my routes are triggered correct if I call: "~/controller/action".

Acaz Souza
  • 8,311
  • 11
  • 54
  • 97
  • I think you may be getting close to the "Gorilla vs. Shark" (http://blog.stackoverflow.com/2011/08/gorilla-vs-shark/) area where this is a little broad. You should probably consider narrowing the scope of what you're asking, or clarifying exactly what you're trying to do. Unit test a route? Debug routes at runtime? Create and test your own route handlers? – Travis Illig Aug 23 '11 at 16:27

2 Answers2

1

Personally I like and use MvcContrib.TestHelper which among many things also you to unit test your routes. I never had problems testing any routes or controller actions with it.

Darin Dimitrov
  • 1,023,142
  • 271
  • 3,287
  • 2,928
  • See my problem with MvcContrib.TestHelper http://stackoverflow.com/questions/7164967/mvccontrib-test-helper-and-verifying-http-post-routes-and-parameters – Acaz Souza Aug 23 '11 at 17:19
0

Are we talking about unit tests or during development? For the second check Phil Hacks Route Debugger Link

Dominik
  • 3,342
  • 1
  • 17
  • 24