2 pages tagged with "unit-testing"


November 28, 2012 - 476 words - 3 mins
We were recently trying to build basic unit tests for the controller actions on an MVC4 + RavenDB application, and having problems attempting to mock the IDocumentSession. The RavenDB people consistently say not to do that, and that running an EmbeddedDocumentStore solves every unit test problem und… read more

MVC unit testing error

January 06, 2011 - 56 words - 1 mins
I was trying to run a unit test on an MVC 3 controller and check the output of a RedirectToRouteResult when I got the following compiler error: Cannot apply indexing with [] to an expression of type 'System.Web.Routing.RouteValueDictionary' This confusing and clearly incorrect error message actually… read more