3 ms·
I keep it simple by using the AAA pattern: Arrange: whatever you need for the setup. Act: a single line of code that is under test. Assert: whatever you want t
by SeriousM 4y ago
I keep it simple by using the AAA pattern:
Arrange: whatever you need for the setup.
Act: a single line of code that is under test.
Assert: whatever you want to assert, multiple statements allowed and usually required.
We put the 3A in code as comments as boundaries and that works more than perfect for the whole team.
Oh and it's readable!