Information
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.

Namespace:   Microsoft.VisualStudio.TestTools.UnitTesting
Assembly:  Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)

public enum class DataAccessMethod

Member nameDescription
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.

No code example is currently available or this language may not be supported.

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.

No code example is currently available or this language may not be supported.
Return to top
Show: