rhino-mocks
Can I define implementation of methods on Rhino Mocked objects?
With Rhino.Mocks, once I Mock an Interface I can: Set up \"return\" values for non void methods on the mocked object[详细]
2023-03-05 04:04 分类:问答Moq equivalent to Rhino Mock's GetArgumentsForCallsMadeOn
trying to insp开发者_如何转开发ect and argument and need to retrieve it. what is the equivalent in Moq? or a way to do it in Moq?figured it out, utilizing the callback functionality on the Mock Setup[详细]
2023-03-03 23:51 分类:问答Rhino moq Property.value constraint
My following straight forward test doesn\'t pass (Though I feel it should). Either I am missing something or is not clear of Property.value constraint. please help me in understanding concept of prope[详细]
2023-03-03 14:13 分类:问答Rhino - Mocking classes and not overriding virtual methods
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 开发者_高级运[详细]
2023-02-28 03:53 分类:问答Why is my PartialMock method ignoring my expectation
I\'ve got a base class that I\'m using as a PartialMock as such 1IContextManager contextManager = mocks.StrictMock<IContextManager>();[详细]
2023-02-26 18:29 分类:问答testing asynchronous callbacks with Rhino Mocks
Here\'s what I\'m trying to do: I have a class A and an interface B. A calls B to update A\'s property someProperty.[详细]
2023-02-25 23:46 分类:问答Verify expectations on a mock?
In the documentation for Rhino Mocks it states that you must verify expectations on a mock which must be verified/asserted later using either the VerifyAllExpectations() or AssertWasCalled() methods.[详细]
2023-02-25 09:03 分类:问答AssertWasCalled and Stub with method that has ref parameter
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.[详细]
2023-02-25 04:49 分类:问答mspec & rhino mocks expected exception testing
I\'m fairly new to unit testing and can\'t get around how to test (or if I even should) this case properly.[详细]
2023-02-24 18:06 分类:问答Rhinomocks - Mocking delegates
public interface IServiceInvoker { R InvokeService<T, R>(Func<T, R> invokeHandler) where T : class;[详细]
2023-02-24 17:57 分类:问答