When should I stub out a type by manually creating a "stub" version, rather than using a mocking fra

Posted by Ben Aston on Stack Overflow See other posts from Stack Overflow or by Ben Aston
Published on 2010-03-16T10:12:55Z Indexed on 2010/03/16 10:16 UTC
Read the original article Hit count: 341

Filed under:
|
|

Are there any circumstances where it is favourable to manually create a stub type, as opposed to using a mocking framework (such as Rhino Mocks) at the point of test.

We take both these approaches in our projects. My gut feel when I look at the long list of stub versions of objects is that it will add maintenance overhead, and moves the implementation of the stub away from the point of test.

© Stack Overflow or respective owner

Related posts about testing

Related posts about mocking