Does more than one statement per test have a really bad smell? I usually try to follow the “arrange, act, approve” pattern, and also approve a single for each testing guide. I believe clean, small, isolated tests are pure awesomeness. For the most part, I manage to do this. However, sometimes I find that I affirm the “preconditions” immediately after my dispensation as follows:
'arrange:
'pre-conditions:
Assert the arrange worked
'act:
'assert:
Am I testing too much? Does he care about things he shouldn't care about? I like to hear some opinions about this.
source
share