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
)
参数
- context
类型:Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext
一个 DataCollectionContext 对象,包含当前上下文信息。
- testElement
类型:Microsoft.VisualStudio.TestTools.Common.ITestElement
关联的 ITestElement 对象。
- tcmInformation
类型:Microsoft.VisualStudio.TestTools.Common.TcmInformation
一个 TcmInformation,包含有关测试用例管理器的信息。
- failureType
类型:Microsoft.VisualStudio.TestTools.Execution.TestCaseFailureType
TestCaseFailureType 值之一。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。