CombinatorialRandomDataAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指定組合測試方法中參數的隨機生成整數值。
[System.AttributeUsage(System.AttributeTargets.Parameter)]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class CombinatorialRandomDataAttribute : Attribute, Microsoft.VisualStudio.TestTools.UnitTesting.Combinatorial.ICombinatorialValuesProvider
[System.AttributeUsage(System.AttributeTargets.Parameter)]
public sealed class CombinatorialRandomDataAttribute : Attribute, Microsoft.VisualStudio.TestTools.UnitTesting.Combinatorial.ICombinatorialValuesProvider
[<System.AttributeUsage(System.AttributeTargets.Parameter)>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type CombinatorialRandomDataAttribute = class
inherit Attribute
interface ICombinatorialValuesProvider
[<System.AttributeUsage(System.AttributeTargets.Parameter)>]
type CombinatorialRandomDataAttribute = class
inherit Attribute
interface ICombinatorialValuesProvider
Public NotInheritable Class CombinatorialRandomDataAttribute
Inherits Attribute
Implements ICombinatorialValuesProvider
- 繼承
-
CombinatorialRandomDataAttribute
- 屬性
- 實作
建構函式
| 名稱 | Description |
|---|---|
| CombinatorialRandomDataAttribute() |
初始化 CombinatorialRandomDataAttribute 類別的新執行個體。 |
欄位
| 名稱 | Description |
|---|---|
| NoSeed |
規定應該 Random 選擇自己的種子。 |
屬性
| 名稱 | Description |
|---|---|
| Count |
取得或設定要產生的正數值。 |
| Maximum |
獲得或設定最大值,包含在內。 |
| Minimum |
取得或設定最低值,包含在內。 |
| Seed |
取得或設定用於隨機數產生的種子。 |
方法
| 名稱 | Description |
|---|---|
| GetValues(ParameterInfo) |
取得應該傳遞給參數的值。 |