Still having trouble mocking HtmlHelper? This is an update to my previous post on mocking HtmlHelper way back when ASP.NET MVC RC1 was released. Eric notified me through a comment on the post and a question on StackOverflow that the code for ASP.NET MVC RC1 did not work with ASP.NET MVC 2. The code in this post should work with ASP.NET MVC 2 and ASP.NET MVC 3 Preview 1.
[...] http://ox.no/posts/mocking-htmlhelper-in-asp-net-mvc-2-and-3-using-moq [...]
ReplyDeleteThanks for the example, it was great.
ReplyDelete