Unit Testing with Visual Studio Team System

Summary

This Drill covers unit testing and testing patterns in Visual Studio Team System (VSTS). Topics include an introduction to unit testing with Visual Studio 2005, dependency injection, using Test Stubs, using Mock Objects, using Shared Fixtures, and using Custom Assertions and Finder Methods.

Audience

This Drill is for developers who want to learn how to write effective unit tests using documented xUnit patterns in Visual Studio 2005 Team System.

What you'll learn

You will learn how to use the Unit Testing Framework in Visual Studio 2005 Team System to create unit tests for your code. After taking this Drill, you will be able to use Team System to create unit tests on a class or method level, access private methods and properties of your code under test, and use the Test View window in Visual Studio to control which tests run. You will also know how to apply documented xUnit testing patterns and techniques.

What you need to know

We assume that you’re already familiar with the concepts of programming and you’ve some experience of Visual Studio 2005. For this Drill, you’ll also need to be comfortable with Visual Basic syntax.