共用方式為


DataCollectorNotifications.RaiseTestFailedEvent 方法

引發 TestCaseFailed 事件,以通知診斷資料配接器,測試案例已失敗。

命名空間:  Microsoft.VisualStudio.TestTools.Execution
組件:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)

語法

'宣告
Public MustOverride Sub RaiseTestFailedEvent ( _
    testCase As ITestElement, _
    failureType As TestCaseFailureType _
)
public abstract void RaiseTestFailedEvent(
    ITestElement testCase,
    TestCaseFailureType failureType
)
public:
virtual void RaiseTestFailedEvent(
    ITestElement^ testCase, 
    TestCaseFailureType failureType
) abstract
abstract RaiseTestFailedEvent : 
        testCase:ITestElement * 
        failureType:TestCaseFailureType -> unit 
public abstract function RaiseTestFailedEvent(
    testCase : ITestElement, 
    failureType : TestCaseFailureType
)

參數

.NET Framework 安全性

請參閱

參考

DataCollectorNotifications 類別

Microsoft.VisualStudio.TestTools.Execution 命名空間

TestCaseFailed

ITestElement

TestCaseFailureType