Working with Unit Tests
Unit tests are an important tool for testers but especially for developers. Although the size of the "unit" being tested can vary, the Team System testing tools generate unit tests specifically for methods, including private methods. For more information, see Unit Tests Overview.
In This Section
- Unit Tests Overview
-
Describes the unit test type of the Team System testing tools. Introduces the concepts of generating and authoring unit tests in Visual Studio, testing private methods, and using the Unit Testing Framework.
- Creating Unit Tests
-
Provides links to topics about generating and authoring unit tests, including ASP.NET unit tests and data-driven unit tests.
- Walkthrough: Creating and Running Unit Tests
-
Leads you through the steps to create and customize unit tests, run them, and examine the test results.
- Unit Test Sample
-
Lets you obtain the "Woodgrove Bank" sample project, which contains code that you use in several walkthroughs.
- Walkthrough: Run Tests and View Code Coverage
-
Builds on a previous walkthrough to show how to view code coverage data, which shows the proportion of your project's code that is being tested.
Reference
- Microsoft.VisualStudio.TestTools.UnitTesting
-
Describes the UnitTesting namespace, which provides attributes, exceptions, asserts, and other classes that support unit testing.
- Microsoft.VisualStudio.TestTools.UnitTesting.Web
-
Describes the UnitTesting.Web namespace, which extends the UnitTesting namespace by providing support for ASP.NET and Web service unit tests.