Use meaningful test names
classCanBeInstantiated
setTitleSetsTitle
setSizeWithZeroThrowsException
hasTitleForEmptyTitleReturnsFalse
Name the
behavior.
Name the
preconditions.
Name the
method.
Don’t use
“works” or
“works correctly”.
measureFrubbleWorksCorrectly