TestCaseFailedEventArgs 建構函式
使用提供的參數值,初始化 TestCaseFailedEventArgs 類別的新執行個體。
命名空間: Microsoft.VisualStudio.TestTools.Execution
組件: Microsoft.VisualStudio.QualityTools.ExecutionCommon (在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)
語法
'宣告
Public Sub New ( _
context As DataCollectionContext, _
testElement As ITestElement, _
tcmInformation As TcmInformation, _
failureType As TestCaseFailureType _
)
public TestCaseFailedEventArgs(
DataCollectionContext context,
ITestElement testElement,
TcmInformation tcmInformation,
TestCaseFailureType failureType
)
public:
TestCaseFailedEventArgs(
DataCollectionContext^ context,
ITestElement^ testElement,
TcmInformation^ tcmInformation,
TestCaseFailureType failureType
)
new :
context:DataCollectionContext *
testElement:ITestElement *
tcmInformation:TcmInformation *
failureType:TestCaseFailureType -> TestCaseFailedEventArgs
public function TestCaseFailedEventArgs(
context : DataCollectionContext,
testElement : ITestElement,
tcmInformation : TcmInformation,
failureType : TestCaseFailureType
)
參數
context
類型:Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext包含目前的內容資訊的 DataCollectionContext物件。
testElement
類型:Microsoft.VisualStudio.TestTools.Common.ITestElement關聯的 ITestElement 物件。
tcmInformation
類型:Microsoft.VisualStudio.TestTools.Common.TcmInformation包含測試案例管理員相關資訊的 TcmInformation。
failureType
類型:Microsoft.VisualStudio.TestTools.Execution.TestCaseFailureType其中一個 TestCaseFailureType 值。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。