I want to be able to do something like this: IProcessDetails detailprocessor = MockRepository.GenerateMock();
I am coming to c# from ruby on rails where I did TDD using Rspec and Mocha. I was looking to get into get into a mocking framework and an older stackoverflow post pointed me in the direction of MOQ an
If I\'m mocking a class, like below, is there any way I can get the mock to not override a virtual method?I know I can simply remove the virtual modifier, but I actually want to stub out 开发者_高级运
I have problems with stubbing a method with a ref parameter. I want to stub that method for a certain input value and check that it was called.
public interface IServiceInvoker { R InvokeService<T, R>(Func<T, R> invokeHandler) where T : class;
I\'m trying to mock a data layer method. The method takes a string and two lists as arguments, and the method populates those lists from the results of a stored proc. Also, I\'m still on C# 2.0 with V
The latest version of Rhino mocks supports Arrange, Act Assert methodology.Does that mean that the record method that it used in previous version is 开发者_如何学编程deprecated?
I\'m having another fun problem with Rhino Mocks. Can anyone answer this one: Here\'s the call that I\'m making in my code:
In my unit test how can I verify that an event is raised by the mocked object. I have a View(UI) --> ViewModel --> DataProvider --> ServiceProxy. ServiceProxy makes async call to serivce operation. W
I have a Singleton that is accessed in my class via a static property like this:OtherClassNotBeingTested.Instance.SomeInstanceMethod()