Compartir a través de


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)]
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)>]
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)

Initializes a new instance of the DataTestMethodAttribute class.

Properties

DisplayName

Gets display name for the test.

(Inherited from TestMethodAttribute)

Methods

Execute(ITestMethod)
Execute(ITestMethod)

Executes a test method.

(Inherited from TestMethodAttribute)

Applies to