Try
Try

Reputation:

Replacement for Rhino mock

Is there a comparable and reliable alternative for Rhino Mock library. I am using Rhino now for MVC ASP.NET project, but am considering (just as plan B) to see if there are any other equivalent alternatives.

Upvotes: 2

Views: 1858

Answers (4)

AutomatedTester
AutomatedTester

Reputation: 22418

Moq is a very good alternative

Upvotes: 5

Mark Seemann
Mark Seemann

Reputation: 233150

RhinoMocks is a very good and powerful Dynamic Mock library. Even though I have been using it for years, I recently switched to Moq.

To my knowledge, RhinoMocks can do everything Moq can do, and perhaps more. The reason I switched is because RhinoMocks has so many different ways you can do the same thing.

To avoid confusion (particularly for colleagues new to mocking in general), I decided to switch to Moq because it has a cleaner API.

Upvotes: 5

George Mauer
George Mauer

Reputation: 122052

There is also NMock which is very old and I believe uses a lot of magic strings. TypeMock Isolator can do way more (including mock DateTime.Now) but costs money and tends to be used more in hard-core legacy application mocking so it can encourage poor discipline.

Upvotes: 0

Roman Motyka
Roman Motyka

Reputation: 649

I advice moq.

Upvotes: 0

Related Questions