Hanselminutes with Scott Hanselman cover image

Test Driven Development is Design - The Last Word on TDD

Hanselminutes with Scott Hanselman

00:00

The Importance of Setting Up Objects in Tests

A lot of context is coming in that's not being passed in directly from a parameter. You've got lots of setup code, anything that's in any concept like a session where you're plucking things out of some holding area outside of yourself. There's no true deep necessity to set up all of this ancillary stuff. But the reality is we tend to stop considering the other people on the team who are coming into our code likely from a cold start.

Play episode from 27:15
Transcript

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