March 2015
Intermediate to advanced
236 pages
5h 26m
English
As the final task, let’s revisit the set of test names in ProfileTest:
| | matchesWhenProfileContainsMatchingAnswer |
| | doesNotMatchWhenNoMatchingAnswer |
| | matchesWhenContainsMultipleAnswers |
| | doesNotMatchWhenNoneOfMultipleCriteriaMatch |
| | matchesWhenAnyOfMultipleCriteriaMatch |
| | doesNotMatchWhenAnyMustMeetCriteriaNotMet |
| | matchesWhenCriterionIsDontCare |
| | scoreIsZeroWhenThereAreNoMatches |
We want readers to be able to quickly answer questions about the behavior of the Profile class. The more we craft the tests for it with care, the more the tests can document the behaviors deliberately designed into Profile.
When seeking to better understand a test-driven class, start by reading its test names. The comprehensive set of test names should ...
Read now
Unlock full access