The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
DataAccessMethod Enumeration
Specifies constants that indicate how data rows are accessed in data-driven testing.
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
| Member name | Description | |
|---|---|---|
| Random | Rows are returned in a random order. | |
| Sequential | Rows are returned in a sequential order. |
Legacy Code Example
The following code contains the class and method to test.
The following test will pass. It uses the sample.mdb access database that contains the following data.
Name | Balance | Amount |
|---|---|---|
Jorg Bott | 100 | 25 |
Pedro Ruivo | 70 | 60 |
Mandar Samant | 75 | 71.25 |
Russell King | 159 | 158 |
Jun Cao | 11.99 | 11.22 |
Note that the DataAccessMethod is sequential.
Show: