Initializes a new instance of the TestCaseFailedEventArgs class by using the provided parameter values.
Namespace:  Microsoft.VisualStudio.TestTools.Execution
Assembly:  Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
Syntax
'Declaration
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
)
Parameters
- context 
 Type: Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext- A DataCollectionContext object containing current context information. 
- testElement 
 Type: Microsoft.VisualStudio.TestTools.Common.ITestElement- The associated ITestElement object. 
- tcmInformation 
 Type: Microsoft.VisualStudio.TestTools.Common.TcmInformation- A TcmInformation containing information about the test case manager. 
- failureType 
 Type: Microsoft.VisualStudio.TestTools.Execution.TestCaseFailureType- One 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.