TestDataRow<T> 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从(例如,通过DynamicDataAttribute)返回GetData(MethodInfo)此类型时,它将确定与特定测试用例相关的信息。
[System.Runtime.Serialization.DataContract]
public sealed class TestDataRow<T>
[System.Runtime.Serialization.DataContract]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class TestDataRow<T>
[<System.Runtime.Serialization.DataContract>]
type TestDataRow<'T> = class
[<System.Runtime.Serialization.DataContract>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type TestDataRow<'T> = class
Public NotInheritable Class TestDataRow(Of T)
类型参数
- T
与此类型持有的值的类型对应的类型参数。 它可以是具有多个参数的测试方法的元组。
- 继承
-
TestDataRow<T>
- 属性
构造函数
| 名称 | 说明 |
|---|---|
| TestDataRow<T>(T) |
初始化 TestDataRow<T> 类的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| DisplayName |
获取或设置测试用例的显示名称。 |
| IgnoreMessage |
获取或设置忽略消息。 非 null 值表示测试用例在提供的消息时将被忽略。 |
| TestCategories |
获取或设置测试用例的测试类别。 |
| Value |
获取此实例持有的值。 |