Dawid

76%
Flag icon
The goal of this section was to prove public interfaces by testing incoming messages. Wheel was cheap to test. The original Gear test was more expensive because it depended on a hidden coupling to Wheel. Replacing that coupling with an injected dependency on Diameterizable isolated the object under test but created a dilemma about whether to inject a real or a fake object.
Practical Object-Oriented Design: An Agile Primer Using Ruby
Rate this book
Clear rating
Open Preview