TestCaseEventArgs 建構函式 (DataCollectionContext, Guid, TcmInformation, String, Boolean)
使用指定的資訊,初始化 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 物件,用來從Test Manager取得測試的進一步資料。
- testCaseName
型別:System.String
測試案例的名稱。
- isChildTestCase
型別:System.Boolean
如果目前測試案例是另一個測試案例的子系則為 true。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。