Data sets
A data set (or equivalence class) is a set of values that defines inputs and expected outputs for one or more individual tests. Each individual test is the result of the test behavior code being executed using the values in a data set.
Each column grouping, which includes an In column and an Expected column, represents one data set, as shown in the following screen capture:
In this screen capture, two data sets have been defined.
- The SameData data set compares two Money objects that share the same amount and currency.
- The DiffAmount data set compares two Money objects with different amounts, but the same currency.
Working with data sets
- To add a new data set, right-click in the heading of any test data table column and click Insert Data Set.
- To rename an existing data set, right-click in the heading of any test data table column and click Rename Data Set.
- To delete a data set, right-click in the heading of any test data table column and click Delete Data Set.
Related concepts
Test data tables
Related tasks
Defining test data