語言

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
屬性
實作

建構函式

名稱 Description
CombinatorialDataAttribute()

初始化 CombinatorialDataAttribute 類別的新執行個體。

方法

名稱 Description
GetData(MethodInfo)

從自訂測試資料來源取得測試資料。

GetDisplayName(MethodInfo, Object[])

取得對應測試資料列的顯示名稱,以便在 TestResults 中顯示。

適用於