I'm working on my first ASP .NET MVC project and prior to this moment I've only used Rhino.Mocks for desktop applications.
It's been a while so I decided to find out what's used in the field now.
After reading some praise for Moq, I decided to go with it.
(I love what some may call lambda mis- and overuse).
However I also heard praise for MvcContrib TestHelper framework which seems to have a dependency on Rhino.Mocks.
I need to know whether TestHelper imposes using Rhino.Mocks on me. I wouldn't want to mix two different mocking frameworks in my tests so in case TestHelper is Rhino-specific, I'll have to decide either to
- switch to Rhino.Mocks for the sake of TestHelper (sad but likely);
- abandon TestHelper for the sake of using Moq (unlikely).
I really hope TestHelper is independent of Rhino.Mocks in its public APIs but I'm not 100% sure.
Can someone (dis)confirm it?
Yes, it does impose you to use Rhino Mocks. All the properties such as Request, Response, Session, HttpContext, ... on the TestHelperBuilder class are stubbed with Rhino Mocks and are waiting for you to write expectations on them.