MSDN Library

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.

Overview of Data-Driven Unit Tests

Describes the purpose of data-driven unit tests, explains how to view their results, and provides links to information about creating data-driven unit tests.

Data-Driven Unit Tests

Describes how to create a data-driven unit test and provides a code example.

Troubleshooting Data-Driven Unit Tests

Provides help to solve connection, authentication, deployment, or other problems when you run data-driven unit tests.

How to: Configure a Data-Driven Unit Test

Describes how to change a unit test so that it runs repeatedly while using data from a data source.

Walkthrough: Using a Configuration File to Define a Data Source

This walkthrough shows how to define, in an app.config file, a data source that will supply data to a data-driven unit test.

Community Additions

Show:
© 2016 Microsoft