DynamicDataAttribute Class

Definition

Attribute to define dynamic data for a test method.

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)]
public sealed class DynamicDataAttribute : Attribute, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSource
type DynamicDataAttribute = class
    inherit Attribute
    interface ITestDataSource
Public NotInheritable Class DynamicDataAttribute
Inherits Attribute
Implements ITestDataSource
Inheritance
DynamicDataAttribute
Attributes
Implements

Constructors

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.

Properties

DynamicDataDisplayName

Gets or sets the name of method used to customize the display name in test results.

DynamicDataDisplayNameDeclaringType

Gets or sets the declaring type used to customize the display name in test results.

Methods

GetData(MethodInfo)
GetDisplayName(MethodInfo, Object[])

Applies to