Chapter 8 covered the details of creating test doubles and using them during automated unit tests, describing how to define a test double either as a subclass inheriting from a base class or as a class implementing an interface. This chapter introduces configurable test doubles.
Isolation Frameworks
You’ll be happy to know that manually defining your own test double is not the only way to facilitate using one. Many programming languages now provide frameworks for defining configurable test doubles ...