本文為機器翻譯文章。如需檢視英文版,請選取 [原文] 核取方塊。您也可以將滑鼠指標移到文字上,即可在快顯視窗顯示英文原文。
譯文
原文

PexMethodAttribute 類別

Visual Studio 2015
 

指定做為 Pex 參數化單元測試的方法。

命名空間:   Microsoft.Pex.Framework
組件:  Microsoft.Pex.Framework (在 Microsoft.Pex.Framework.dll 中)


[SerializableAttribute]
[AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple = false)]
public sealed class PexMethodAttribute : PexExplorationAttributeBase

名稱描述
System_CAPS_pubpropertyActiveSettings

取得已設定之設定名稱的清單(繼承自 PexSettingsStoreAttributeBase。)

System_CAPS_pubpropertyCategories

具名參數,指定裝置分類。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyContainsSettings

取得值,指出此執行個體是否具有已設定的設定。(繼承自 PexSettingsStoreAttributeBase。)

System_CAPS_pubpropertyDisableObservableAssertions

具名參數,指定是否不應判斷提示觀察到的值(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyDisablePostAnalysis

具名參數,指定是否要停用 POST 分析。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyIncludeNonFinalSegmentCoverage

具名參數,指定 Pex 是否應在涵蓋範圍報表中包含非最終區段,以及決定是否要發出測試的時機。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyMaxBranches

具名參數,指定可以在單一執行路中使用的分支數上限。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyMaxCalls

具名參數,指定探勘期間的方法呼叫數上限。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyMaxConditions

具名參數,指定單一執行路徑可以對輸入來查的條件數上限。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyMaxConstraintSolverMemory

具名參數,指定條件約束規劃求解的記憶體限制。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyMaxConstraintSolverTime

具名參數,指定條件約束規劃求解的逾時值。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyMaxExceptions

具名參數,指定停止前新的例外狀況數上限。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyMaxExecutionTreeNodes

具名參數,指的執行樹狀目錄節點數上限。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyMaxRuns

具名參數,指定探勘期間可嘗試的回合數上限。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyMaxRunsWithoutNewTests

具名參數,指定上限。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyMaxRunsWithUniquePaths

具名參數,指定 Pex 所能嘗試產生不同執行路徑的回合數上限。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyMaxSequenceLength

具名參數,指定所能執行以建構指定類型物件的方法呼叫數上限。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyMaxStack

具名參數,指定在探勘期間的堆疊大小上限。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyMaxWorkingSet

具名參數,指定工作集上限。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyNoSoftSubstitutions

實驗。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyNotReproducible

具名參數,指定所產生的測試是否不能重現。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyObserveChoices

值,指出是否應觀察參數資料表中的選擇。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyOwner

產生之測試的擁有者 (如有提供且測試架構可予支援)。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyPriority

若測試架構可予支援,則為所產生之測試的優先權。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertySupportedPlatform

指定為這項測試支援的位元。(繼承自 PexExplorationAttributeBase。)

System_CAPS_pubpropertyTestClassName

具名參數,指定測試類別名稱的格式字串。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyTestEmissionBranchHits

具名參數,指定 Pex 是否可以在分支的涵蓋範圍增加時,發出新的測試案例;請考量達到分支數上限的頻率及此選項的限制。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyTestEmissionFilter

具名參數,指定 Pex 據以產生測試案例的基礎。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyTestExcludePathBoundsExceeded

具名參數,指定是否要忽略超過 MaxCallsMaxBranchesMaxConditions 的執行路徑。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyThreadApartmentState

具名參數,指定測試執行緒應有的 Apartment 狀態。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyTimeout

具名參數,指定探勘逾時值。(繼承自 PexSettingsAttributeBase。)

System_CAPS_pubpropertyTypeId

(繼承自 Attribute。)

名稱描述
System_CAPS_pubmethodClone()

複製這個執行個體。(繼承自 PexExplorationAttributeBase。)

System_CAPS_pubmethodEquals(Object)

(繼承自 Attribute。)

System_CAPS_pubmethodGetHashCode()

(繼承自 Attribute。)

System_CAPS_pubmethodGetType()

(繼承自 Object。)

System_CAPS_pubmethodIntegrateSettings(PexSettingsStoreAttributeBase)

整合目前存放區中尚未設定之屬性的設定(繼承自 PexSettingsStoreAttributeBase。)

System_CAPS_pubmethodIsDefaultAttribute()

(繼承自 Attribute。)

System_CAPS_pubmethodLock()

鎖定此執行個體的所有屬性。(繼承自 PexSettingsStoreAttributeBase。)

System_CAPS_pubmethodMatch(Object)

(繼承自 Attribute。)

System_CAPS_pubmethodOverrideSettings(PexSettingsStoreAttributeBase)

覆寫設定。(繼承自 PexSettingsStoreAttributeBase。)

System_CAPS_pubmethodToCustomAttribute()

建立自訂屬性(繼承自 PexSettingsStoreAttributeBase。)

System_CAPS_pubmethodToString()

(繼承自 Object。)

System_CAPS_pubmethodTryGetValue(String, Object)

嘗試查詢值。(繼承自 PexSettingsStoreAttributeBase。)

System_CAPS_pubmethodValidateMethod(IPexLog, MethodDefinition)
System_CAPS_pubmethodWriteXml(SafeSimpleXmlWriter)

以 XML 屬性形式寫入設定(繼承自 PexSettingsStoreAttributeBase。)

這個類型的任何公用靜態 (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

回到頁首
顯示: