I find the concept of separating the instructions of my unit tests as suggested in the AAA template.
I usually add heading comments so the tests look like this:
But I'm curious if it's okay to include these comments in the headline?
... or is this what I should avoid?
int a = 1; int b = 2; int c = a + b; Assert.AreEqual(3, c);
c # unit-testing arrange-act-assert
Lea hayes
source share