Hanselminutes with Scott Hanselman cover image

The Art of Unit Testing with Roy Osherove

Hanselminutes with Scott Hanselman

00:00

How to Write Tests for a Method

If I write tests in a test first manner and that's what I usually do, I will drive real functionality. As you get real value that you can actually demo, you can start throwing in invalid values. So, I will tell people you should stop writing tests for a method when you feel comfortable about it. You're going to get to that feeling after you have enough tests.

Play episode from 29:29
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