语言

CombinatorialDataAttribute 类

定义

为测试方法的参数提供值的每个可能组合。

[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 中显示的测试数据行对应的显示名称。

适用于