DataTestMethodAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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) |