October 2016
Intermediate to advanced
198 pages
3h 52m
English
Fake objects are working implementations of the interface or trait. This implementation is not production-like but instead takes a shortcut. Therefore, a fake object is just confined to the test harness and does not make it to the production code.
Fakes are dumb implementations and do not have any concept of expectations and verifications. Fakes arise from the school of thought that the interaction of the behavior of the dependency should not be a matter of concern for a test that is concentrating on testing the client.

Read now
Unlock full access