TestCaseEventArgs 构造函数 (DataCollectionContext, ITestElement, TcmInformation)
使用提供的信息初始化 TestCaseEventArgs 类的新实例。
命名空间: Microsoft.VisualStudio.TestTools.Execution
程序集: Microsoft.VisualStudio.QualityTools.ExecutionCommon(在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)
语法
声明
Protected Sub New ( _
context As DataCollectionContext, _
testElement As ITestElement, _
tcmInformation As TcmInformation _
)
protected TestCaseEventArgs(
DataCollectionContext context,
ITestElement testElement,
TcmInformation tcmInformation
)
protected:
TestCaseEventArgs(
DataCollectionContext^ context,
ITestElement^ testElement,
TcmInformation^ tcmInformation
)
new :
context:DataCollectionContext *
testElement:ITestElement *
tcmInformation:TcmInformation -> TestCaseEventArgs
protected function TestCaseEventArgs(
context : DataCollectionContext,
testElement : ITestElement,
tcmInformation : TcmInformation
)
参数
- context
类型:Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext
DataCollectionContext 对象。
- testElement
类型:Microsoft.VisualStudio.TestTools.Common.ITestElement
由 ITestElement 对象表示的当前测试元素。
- tcmInformation
类型:Microsoft.VisualStudio.TestTools.Common.TcmInformation
一个 TcmInformation 对象,该对象用于从测试管理器获取有关测试的更多数据。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。