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?

有帮助吗?

解决方案

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

其他提示

They are out there, but they cost money.

You could try JustMock or TypeMock

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top