DataCollectorNotifications.RaiseTestFailedEvent Method
Raises a TestCaseFailed event to notify diagnostic data adapters that the test case has failed.
Namespace: Microsoft.VisualStudio.TestTools.Execution
Assembly: Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
Syntax
'Declaration
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
)
Parameters
testCase
Type: Microsoft.VisualStudio.TestTools.Common.ITestElementAn ITestElement object that represents the current test case.
failureType
Type: Microsoft.VisualStudio.TestTools.Execution.TestCaseFailureTypeOne of the TestCaseFailureType values.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DataCollectorNotifications Class