Share via


Working with Data-Driven Unit Tests

A data-driven unit test is a unit test that is run repeatedly for each row in a data source. You can, for example, retrieve data from the rows of a database table and pass the data to successive calls of a single test method. The topics in this section describe how to create and configure data-driven unit tests, and how to troubleshoot such a test if it fails to run.

In This Section

Overview of Data-Driven Unit Tests

Coding a Data-Driven Unit Test

Troubleshooting Data-Driven Unit Tests

How to: Configure a Data-Driven Unit Test

Walkthrough: Using a Configuration File to Define a Data Source

Configuring Test Execution

Unit Tests Overview

See Also

Other Resources

Obtaining Test Results