November 2013
Intermediate to advanced
292 pages
8h 13m
English
This chapter covers
In the previous chapter, you solved the problem of testing code that depends on other objects to run correctly. You used stubs to make sure that the code under test received all the inputs it needed so that you could test its logic independently.
Also, so far, you’ve only written tests that work against the first two of the three types of end results a unit of work can have: returning a value and changing the state of the system.
In this chapter, we’ll look at how you test the third type of end result—a call to a third-party object. You’ll ...
Read now
Unlock full access