Chapter 2. What is a unit test?

Table 2.1. The differences between the London and classical schools of unit testing, summed up by the approach to isolation, the size of a unit, and the use of test doubles

Chapter 4. The four pillars of a good unit test

Table 4.1. The pros and cons of white-box and black-box testing

Chapter 5. Mocks and test fragility

Table 5.1. The relationship between the code’s publicity and purpose. Avoid making implementation details public.

Table 5.2. The differences between the London and classical schools of unit testing

Chapter 6. Styles of unit testing

Table 6.1. The three styles of unit testing: The comparisons

Table 6.2. The initial version of the audit system scores badly on two out of the four attributes of a good test.

Table 6.3. The version with mocks compared to the initial version of the audit system

Table 6.4. The output-based test compared to the previous two versions

Chapter 7. Refactoring toward valuable unit tests

Table 7.1. Types of code in the sample project after refactoring using the Humble Object pattern

Chapter 11. Unit testing anti-patterns

Table 11.1. The relationship between the code’s publicity and purpose