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.
Related Sections
- Managing Tests
Describes aspects of working with tests, including how to customize and filter test views, how to work with test lists, and how to associate tests with work items.
- Running Tests
Describes many aspects of running tests, including how to configure test runs, how to run tests in the Visual Studio IDE and on a command line, and how to debug while running a test.
- Test Results and Analysis
Describes test results and ways to work with them, including how to view, save, and publish them and how to create bugs from them.
- Working with Web Tests
Describes how to create, edit, run, and view Web tests.
- Working with Load Tests
Describes the uses of load tests, how to edit and run them, how to collect and store load test performance data, and how to analyze load test runs.
- Working with Manual Tests
Describes how to create and run manual tests, the only non-automated test type.
- Working with Generic Tests
Describes how to create and run generic tests. Generic tests wrap external programs and tests that were not originally developed for use in the Team System testing tools.
- Working with Ordered Tests
Describes how to create ordered tests, which contain other tests that are meant to be run in a specified order.
- Walkthroughs for Team Edition for Testers
Provides links to the walkthroughs that step you through the use of the built-in test types and other topics, such as the collection of code-coverage data.