Costruttore TestCaseEventArgs (DataCollectionContext, Guid, TcmInformation, String, Boolean)
Inizializza una nuova istanza di TestCaseEventArgs classe utilizzando le informazioni specificate.
Spazio dei nomi: Microsoft.VisualStudio.TestTools.Execution
Assembly: Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
Sintassi
'Dichiarazione
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
)
Parametri
- context
Tipo: Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext
In DataCollectionContext oggetto.
- testCaseId
Tipo: System.Guid
L'ID test case corrente che è rappresentato da ITestElement oggetto.
- tcmInformation
Tipo: Microsoft.VisualStudio.TestTools.Common.TcmInformation
In TcmInformation oggetto utilizzato per ottenere ulteriori dati sul test da Test Manager.
- testCaseName
Tipo: System.String
Il nome del test case.
- isChildTestCase
Tipo: System.Boolean
true se il test case corrente è un elemento figlio di un altro test case.
Sicurezza di .NET Framework
- Attendibilità totale per il chiamante immediato. Impossibile utilizzare questo membro in codice parzialmente attendibile. Per ulteriori informazioni, vedere Utilizzo di librerie da codice parzialmente attendibile.