DataRowAttribute 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.
Attribute to define in-line data for a test method.
public ref class DataRowAttribute : Attribute, Microsoft::VisualStudio::TestTools::UnitTesting::ITestDataSource
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)]
public class DataRowAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)]
public class DataRowAttribute : Attribute, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSource
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)]
public class DataRowAttribute : Attribute, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSource, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSourceUnfoldingCapability
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)]
public class DataRowAttribute : Attribute, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSource, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSourceIgnoreCapability, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSourceUnfoldingCapability
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)>]
type DataRowAttribute = class
inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)>]
type DataRowAttribute = class
inherit Attribute
interface ITestDataSource
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)>]
type DataRowAttribute = class
inherit Attribute
interface ITestDataSource
interface ITestDataSourceUnfoldingCapability
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=true)>]
type DataRowAttribute = class
inherit Attribute
interface ITestDataSource
interface ITestDataSourceUnfoldingCapability
interface ITestDataSourceIgnoreCapability
Public Class DataRowAttribute
Inherits Attribute
Public Class DataRowAttribute
Inherits Attribute
Implements ITestDataSource
Public Class DataRowAttribute
Inherits Attribute
Implements ITestDataSource, ITestDataSourceUnfoldingCapability
Public Class DataRowAttribute
Inherits Attribute
Implements ITestDataSource, ITestDataSourceIgnoreCapability, ITestDataSourceUnfoldingCapability
- Inheritance
-
DataRowAttribute
- Attributes
- Implements
Constructors
DataRowAttribute() |
Initializes a new instance of the DataRowAttribute class. |
DataRowAttribute(Object, Object[]) |
Initializes a new instance of the DataRowAttribute class which takes in an array of arguments. |
DataRowAttribute(Object) |
Initializes a new instance of the DataRowAttribute class with an array of object arguments. |
DataRowAttribute(Object[]) |
Initializes a new instance of the DataRowAttribute class with an array of object arguments. |
DataRowAttribute(String[]) |
Initializes a new instance of the DataRowAttribute class with an array of string arguments. |
Properties
Data |
Gets data for calling test method. |
DisplayName |
Gets or sets display name in test results for customization. |
IgnoreMessage |
Gets or sets a reason to ignore the specific test case. Setting the property to non-null value will ignore the test case. |
TestIdGenerationStrategy |
Gets the test id generation strategy. |
UnfoldingStrategy |
Gets the strategy for unfolding parameterized tests. |
Methods
GetData(MethodInfo) |
Gets the test data from custom test data source. |
GetDisplayName(MethodInfo, Object[]) |
Gets the display name corresponding to test data row for displaying in TestResults. |