At TechEd 2007 Brian Randall and I co-presented on Unit Testing and Test Driven Development (TDD) using Visual Studio Team System.
Here is the official session abstract:
DEV347 – Unit Testing and Test Driven Development
Track(s): Developer Tools and Technologies
Speaker(s): Brian Randell, Doug Seven
You want to write the best quality code you can, and you want to ensure it does exactly what it is expected to. By writing unit tests for both your existing code, and for the code you have yet to write, you can ensure that you code is functioning exactly as it was meant to. Learn how to use the Unit Testing features built in to Microsoft Visual Studio 2005. Learn how to set up a Test Project and create unit tests for existing code, write a variety of unit tests, and see how the unit tests help ensure code quality. By the end of the session, you will learn how you can write unit tests to drive the design and development of your code.
A couple days later I presented the same topic, and drilled deeper into how unit testing and test driven development are done in real life. In this session I lokked at real code being developed by my team at Microsoft. In this session you learn more about how to write real unit tests including unit testing with dependancies that can’t be removed, using mock objects, and affecting a culture shift in your organization.