Peeking Under the Hood: Unit Tests

By on 7/30/2009

I don’t know about you guys, but I really like to learn by example.  Much better to see someone else’s working code – provided you have an understanding of the underlying principles of course ;-)

Unit tests are a topic that’s often a hot debate.  In my opinion, it’s because a lot of people don’t really know how to “do it right”.  To that end, in case you hadn’t seen this, Microsoft generously provides all of the source code to the ASP.NET MVC project on CodePlex.  And codeplex has this cool feature where you can browse the repositories right from your browser.  So you can dig right into the MVC/test/SystemWebMvcTest folder and see how they do it first hand :-)

See more in the archives