I have a paging controller with a method that calls
RouteTable.Routes.GetVirtualPath(this.viewContext.RequestContext, valueDictionary)
I'm trying to test this method with Rhino's new products, and I'm not sure how to mock GetVirtualPath to return a non-zero route. I'm mocking RequestContext, but I'm not sure which methods / properties need to be trimmed.
Shortening mockRequestContext, it follows that GetVirtualPath returns a nonzero path, and if so, then what needs to be trimmed for this?
Any advice is greatly appreciated.
source
share