Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# is there a a spying framework like mockito for .NET 3.5?

I used to have a very convenient spying framework in java called Mockito. It allows you to mock some of methods on existing objects and also could tell you if others were called (you'd create a spy wrapper for that). Is there anything like that for C# in .NET 3.x?

like image 223
Artem Avatar asked Apr 02 '13 18:04

Artem


2 Answers

It sounds like you are describing "partial mocks". Some (most?) mocking frameworks have support for that. I know for sure Moq and RhinoMocks do.

like image 52
Dylan Smith Avatar answered Oct 20 '22 00:10

Dylan Smith


They are out there, but they cost money.

You could try JustMock or TypeMock

like image 24
Jeff Vanzella Avatar answered Oct 19 '22 22:10

Jeff Vanzella