AnthonySteele/MvcRouteTester — pull request #39 by chartek (2014-03-20 21:08:18+00:00)
Title: Idea for fixing Issue #37.

__Please DO NOT merge. This is only an idea on how to fix the issue. It does NOT compile.__

I spent some time digging through the ASP.NET MVC codebase. I noticed that the [DefaultControllerFactory](https://github.com/ASP-NET-MVC/aspnetwebstack/blob/master/src/System.Web.Mvc/DefaultControllerFactory.cs) made calls to an extension method called `HasDirectRouteMatch()` and I thought that could be used to find the correct `RouteData`. Unfortunately `GetDirectRouteMatches()` still returns multiple `RouteData` instances, but perhaps you could iterate over each of those instances and call `VerifyExpectations()`? If one of them comes back without any errors, then that would be the correct route.

The `DirectRouteExtensions.cs` file is [a file I took](https://github.com/ASP-NET-MVC/aspnetwebstack/blob/master/src/System.Web.Mvc/Routing/DirectRouteExtensions.cs) from the ASP.NET MVC codebase, but with modifications.

I don't know if this is the correct approach, but I did verify that the `Verifier` class did work against the route `GET ~/VerbedAttr` but then failed (which was expected) against the route `POST ~/VerbedAttr`.