CombinatorialDataAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为测试方法的参数提供值的每个可能组合。
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)]
public sealed class CombinatorialDataAttribute : Attribute, Microsoft.VisualStudio.TestTools.UnitTesting.ITestDataSource
[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=false)>]
type CombinatorialDataAttribute = class
inherit Attribute
interface ITestDataSource
Public NotInheritable Class CombinatorialDataAttribute
Inherits Attribute
Implements ITestDataSource
- 继承
-
CombinatorialDataAttribute
- 属性
- 实现
构造函数
| 名称 | 说明 |
|---|---|
| CombinatorialDataAttribute() |
初始化 CombinatorialDataAttribute 类的新实例。 |
方法
| 名称 | 说明 |
|---|---|
| GetData(MethodInfo) |
从自定义测试数据源获取测试数据。 |
| GetDisplayName(MethodInfo, Object[]) |
获取与 TestResults 中显示的测试数据行对应的显示名称。 |