Share via


DataTestMethodAttribute Class

Definition

This attribute doesn't currently provide any different functionality compared to TestMethodAttribute. It's only present for backward compatibility. Using TestMethodAttribute is recommended, even for parameterized tests.

[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)]
public class DataTestMethodAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute
[System.AttributeUsage(System.AttributeTargets.Method)]
[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public class DataTestMethodAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute
[System.AttributeUsage(System.AttributeTargets.Method)]
public class DataTestMethodAttribute : Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false)>]
type DataTestMethodAttribute = class
    inherit TestMethodAttribute
[<System.AttributeUsage(System.AttributeTargets.Method)>]
[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]
type DataTestMethodAttribute = class
    inherit TestMethodAttribute
[<System.AttributeUsage(System.AttributeTargets.Method)>]
type DataTestMethodAttribute = class
    inherit TestMethodAttribute
Public Class DataTestMethodAttribute
Inherits TestMethodAttribute
Inheritance
DataTestMethodAttribute
Attributes

Constructors

DataTestMethodAttribute()

Initializes a new instance of the DataTestMethodAttribute class.

DataTestMethodAttribute(String, Int32)

Initializes a new instance of the DataTestMethodAttribute class.

DataTestMethodAttribute(String)

Initializes a new instance of the DataTestMethodAttribute class.

Properties

DeclaringFilePath

Gets the file path that declares the attribute.

(Inherited from TestMethodAttribute)
DeclaringLineNumber

Gets the line number within DeclaringFilePath that declares the attribute.

(Inherited from TestMethodAttribute)
DisplayName

Gets display name for the test.

(Inherited from TestMethodAttribute)
UnfoldingStrategy

Gets the strategy for unfolding parameterized tests.

(Inherited from TestMethodAttribute)

Methods

Execute(ITestMethod)
Execute(ITestMethod)

Executes a test method.

(Inherited from TestMethodAttribute)
ExecuteAsync(ITestMethod)

Executes a test method.

(Inherited from TestMethodAttribute)

Applies to