Condividi tramite


Metodo DataCollectorNotifications.RaiseTestFailedEvent

Genera un'eccezione TestCaseFailed evento per notificare gli adattatori dati di diagnostica che il test case ha esito negativo.

Spazio dei nomi:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)

Sintassi

'Dichiarazione
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
)

Parametri

Sicurezza di .NET Framework

Vedere anche

Riferimenti

DataCollectorNotifications Classe

Spazio dei nomi Microsoft.VisualStudio.TestTools.Execution

TestCaseFailed

ITestElement

TestCaseFailureType