Refactoring: Improving the Design of Existing Code (2nd Edition) Cover Book cover copyright Martin Fowler

Overview

This chapter explains the value of self-testing code and gives some examples.

My One Takeaway

The section “Probing the Boundaries” talks about writing code that tests for edge cases like negative numbers and invalid numbers/string. This is something I need to do more of in my own testing.