Creating Unit Tests

You can create unit tests in one of two ways: generate them from source code or author them by hand. The following topics describe both these methods.

In This Section

How to: Generate a Unit Test

How to: Author a Unit Test

How to: Create an ASP.NET Unit Test

Coding a Data-Driven Unit Test

How to: Configure a Data-Driven Unit Test

How to: Test a Private Method

How to: Regenerate Private Accessors

Unit Testing Framework

Using the TestContext Class

Using the Assert Classes




Unit Tests Overview

Managing Tests

Running Tests

Test Results and Analysis

See Also


Walkthrough: Creating and Running Unit Tests
Walkthrough: Run Tests and View Code Coverage
Walkthrough: Using the Command-line Test Utility