Creating Your Own Fakes Instead of Using Mocking Libraries
steven-giesel.com
steven-giesel.com
Fake is a general term and can include stubs, mocks, and shims.
Stub provides pre-set answers to calls.
Mock checks interactions and provides pre-set answers.
Shim diverts or changes the behavior of existing calls.
"...
" Creating your own fakes comes with a cost. You have to maintain them... "