共用方式為


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
)

參數

.NET Framework 安全性

請參閱

參考

TestCaseFailedEventArgs 類別

Microsoft.VisualStudio.TestTools.Execution 命名空間

DataCollectionContext

ITestElement

TcmInformation

TestCaseFailureType