34.6. SummaryWe have seen a useful pattern to follow when a system depends on another, independent system, such as the system clock. Emily and Neo introduced a normal and a mock form of the clock so that it was easy to switch between them. The test fixture creates the mock clock and passes it to the system under test, making it easy for the fixture to alter the date and time. Questions & Answers
|