
Clean Code – How to Write Amazing Unit Tests
Coding Blocks
00:00
I Don't Care About the Assertion, Right?
Rod: There are times where, while trying to do the arrange or the act portion of my unit test, i might havean assert just to make sure that the state is ready. And then i'll even have, this is one o those few times where i will put a comment, and i'll say like, hey, looky. This isn't the assert we care about, but if this assert isn't true, then this unit test isn't nor can it be trusted. Rod: I personally try to adhere to it, but sometimes i'll have a second to search in there, that it might just be relevant to the situation. Now, a some might want to take that
Transcript
Play full episode