Unit Testing - Data Properties

The Unit Test Properties associated with data are the following:

  • Data Access Method
  • Data Connection String
  • Data Provider Name
  • Data Table Name

The Data Access Method property determines how the data should be retrieved, either randomly, uniquely, or sequentially row-by-row. The Data Connection String and Data Provider Name tell Visual Studio Team System how to connect to a given data source. The Data Table Name is the actual table from which to pull data.

Using these properties to introduce data from a data source can dramatically increase the robustness of your testing.