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
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