Rhino Mocks 3.5 Design DecisionsTo be strict or not?
Here is an interesting problem. What should this piece of code do?
var stubSmsSender = MockRepository.GenerateStub<ISmsSender>();
// test code
stubSmsSender.VerifyAllExpectations();
Right now this is a no-op.
But since stubs are explicitly not mocks, they shouldn't be verified. Should I throw here? For something which is a test design decision?
More posts in "Rhino Mocks 3.5 Design Decisions" series:
- (30 Jun 2008) Getting closer to conclusion
- (29 Jun 2008) The role of Stub vs. Mock
- (29 Jun 2008) To be strict or not?

Comments
Comment preview