Description
Mocking. Excellent thing. It allows you to replace parts of your system under test with mock objects and make assertions about how they have been used. That makes your life easier when writing tests. Until it makes your live miserable. Which practices with mocking are considered good, which are considered bad and what shall you never do or you will die a horrible death? How to avoid mocking? And should you try to avoid it at all cost? All you wanted to ask about the pros and cons of mocking. Demos!