使用给定信息初始化 TestCaseEventArgs 类的新实例。
命名空间: Microsoft.VisualStudio.TestTools.Execution
程序集: Microsoft.VisualStudio.QualityTools.ExecutionCommon(在 Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll 中)
语法
声明
Protected Sub New ( _
context As DataCollectionContext, _
testCaseId As Guid, _
tcmInformation As TcmInformation, _
testCaseName As String, _
isChildTestCase As Boolean _
)
protected TestCaseEventArgs(
DataCollectionContext context,
Guid testCaseId,
TcmInformation tcmInformation,
string testCaseName,
bool isChildTestCase
)
protected:
TestCaseEventArgs(
DataCollectionContext^ context,
Guid testCaseId,
TcmInformation^ tcmInformation,
String^ testCaseName,
bool isChildTestCase
)
new :
context:DataCollectionContext *
testCaseId:Guid *
tcmInformation:TcmInformation *
testCaseName:string *
isChildTestCase:bool -> TestCaseEventArgs
protected function TestCaseEventArgs(
context : DataCollectionContext,
testCaseId : Guid,
tcmInformation : TcmInformation,
testCaseName : String,
isChildTestCase : boolean
)
参数
- context
类型:Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext
一个 DataCollectionContext 对象。
- testCaseId
类型:System.Guid
由 ITestElement 对象表示的当前测试用例 ID。
- tcmInformation
类型:Microsoft.VisualStudio.TestTools.Common.TcmInformation
一个 TcmInformation 对象,该对象用于从测试管理器获取有关测试的更多数据。
- testCaseName
类型:System.String
测试用例的名称。
- isChildTestCase
类型:System.Boolean
如果当前测试用例为另一测试用例的子用例,则为 true。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。