AnthonySteele / MvcRouteTester

A library for unit testing ASP MVC route tables for both Web and API Routes
Apache License 2.0
105 stars 43 forks source link

What does the presumed UnitTest project look like? #73

Closed kimballjohnson closed 7 years ago

kimballjohnson commented 7 years ago

In all your examples, it appears that you are declaring unit tests within an ASP.NET MVC project, rather than in a Unit Test project. For example, you have this construct in one of your example pages: RouteConfig.RegisterRoutes(routes); In my experience, you need to be within an MVC project, in the Global.asax in order for that to compile. On the other hand, it would be unusual (and involve unusual references) to create a unit test file in an MVC project. So how is your presumed project set up, and how are you able to reference the objects defined and called within the abstract methods of the MvcApplication? Thanks Kimball Johnson

kimballjohnson commented 7 years ago

nevermind, I got it.