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
- 屬性
- 實作
建構函式
| 名稱 | Description |
|---|---|
| CombinatorialDataAttribute() |
初始化 CombinatorialDataAttribute 類別的新執行個體。 |
方法
| 名稱 | Description |
|---|---|
| GetData(MethodInfo) |
從自訂測試資料來源取得測試資料。 |
| GetDisplayName(MethodInfo, Object[]) |
取得對應測試資料列的顯示名稱,以便在 TestResults 中顯示。 |