DynamicDataAttribute Constructors

Definition

Overloads

DynamicDataAttribute(String, DynamicDataSourceType)

Initializes a new instance of the DynamicDataAttribute class.

DynamicDataAttribute(String, Type, DynamicDataSourceType)

Initializes a new instance of the DynamicDataAttribute class when the test data is present in a class different from test method's class.

DynamicDataAttribute(String, DynamicDataSourceType)

Initializes a new instance of the DynamicDataAttribute class.

public DynamicDataAttribute (string dynamicDataSourceName, Microsoft.VisualStudio.TestTools.UnitTesting.DynamicDataSourceType dynamicDataSourceType = Microsoft.VisualStudio.TestTools.UnitTesting.DynamicDataSourceType.Property);
new Microsoft.VisualStudio.TestTools.UnitTesting.DynamicDataAttribute : string * Microsoft.VisualStudio.TestTools.UnitTesting.DynamicDataSourceType -> Microsoft.VisualStudio.TestTools.UnitTesting.DynamicDataAttribute
Public Sub New (dynamicDataSourceName As String, Optional dynamicDataSourceType As DynamicDataSourceType = Microsoft.VisualStudio.TestTools.UnitTesting.DynamicDataSourceType.Property)

Parameters

dynamicDataSourceName
String

The name of method or property having test data.

dynamicDataSourceType
DynamicDataSourceType

Specifies whether the data is stored as property or in method.

Applies to

DynamicDataAttribute(String, Type, DynamicDataSourceType)

Initializes a new instance of the DynamicDataAttribute class when the test data is present in a class different from test method's class.

public DynamicDataAttribute (string dynamicDataSourceName, Type dynamicDataDeclaringType, Microsoft.VisualStudio.TestTools.UnitTesting.DynamicDataSourceType dynamicDataSourceType = Microsoft.VisualStudio.TestTools.UnitTesting.DynamicDataSourceType.Property);
new Microsoft.VisualStudio.TestTools.UnitTesting.DynamicDataAttribute : string * Type * Microsoft.VisualStudio.TestTools.UnitTesting.DynamicDataSourceType -> Microsoft.VisualStudio.TestTools.UnitTesting.DynamicDataAttribute
Public Sub New (dynamicDataSourceName As String, dynamicDataDeclaringType As Type, Optional dynamicDataSourceType As DynamicDataSourceType = Microsoft.VisualStudio.TestTools.UnitTesting.DynamicDataSourceType.Property)

Parameters

dynamicDataSourceName
String

The name of method or property having test data.

dynamicDataDeclaringType
Type

The declaring type of property or method having data. Useful in cases when declaring type is present in a class different from test method's class. If null, declaring type defaults to test method's class type.

dynamicDataSourceType
DynamicDataSourceType

Specifies whether the data is stored as property or in method.

Applies to