Coding Blocks cover image

Errors vs Exceptions, Reddit Rebels, and the 2023 StackOverflow Survey

Coding Blocks

00:00

The Importance of Multiple Assertions in Unit Testing

In Vladimir's book, he makes the point that multiple asserts are okay as long as they're part of the same behavior. So if you're asserting before that still should be a code smell, right? He convinced me that like having multiple asserts in your test is OK. But he also makes this strong case for either writing your methods in a fluent style or using a library that lets you do a fluent style syntax. And we will have a link in the show and that is an affiliate link. We will get a little tiny change from it. If you haven't checked out this book, you know, there's no need to buy it yet but go check it out!

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app