
Clean Code – How to Write Amazing Unit Tests
Coding Blocks
00:00
Is It Possible to Assert a Unit Test?
As long as your serts are all in line with what the concept of that method is, then it's probably ok. But when we do need multiple asserts, well, a, let's try to minimie, minimize it. So just wrapi up, the ideally we would have the single assert keeps our unit test lazer focused on that one thing that we're trying to test.
Transcript
Play full episode