June 2014
Intermediate to advanced
284 pages
6h 9m
English
The previous recipe showed an example of working with code that is not very trivial to mock. The obstacles might be as follows:
The main feature described in this recipe focuses on the process of delegation of a method execution from a method of the implemented interface to the instantiated class (as you can see, there is a catch – the class to be mocked needs to implement an interface). As a reminder, you should have very legitimate reasons to use a partial mock in your code. Otherwise, it most likely signifies that there is something ...