Click to Rate and Give Feedback
MSDN
MSDN Library
Visual Studio 2008
Development Edition
 Working with Unit Tests
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Visual Studio Team System
Working with Unit Tests

Updated: November 2007

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.

Note:

Visual Studio 2008 Team Edition for Developers offers two test-related capabilities that were not available in Visual Studio 2005 Team Edition for Developers. First, you can now manage test lists; for more information, see Managing Large Numbers of Tests. Also, you can now obtain code coverage data when you run tests; for more information, see How to: Obtain Code Coverage Data.

Note:

For information about test-related capabilities for users of Visual Studio Professional Edition, see Using Testing Tools in Visual Studio Professional Edition.

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.

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. 

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. 

Analyzing Test Results

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 Test Edition

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.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker