Konstruktor TestCaseEventArgs — (DataCollectionContext, Guid, TcmInformation, String, Boolean)
Inicjuje nowe wystąpienie TestCaseEventArgs klasy przy użyciu podanych informacji.
Przestrzeń nazw: Microsoft.VisualStudio.TestTools.Execution
Zestaw: Microsoft.VisualStudio.QualityTools.ExecutionCommon (w Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
Składnia
'Deklaracja
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
)
Parametry
- context
Typ: Microsoft.VisualStudio.TestTools.Execution.DataCollectionContext
A DataCollectionContext object.
- testCaseId
Typ: System.Guid
Bieżący identyfikator badania sprawy, która jest reprezentowana przez ITestElement obiektu.
- tcmInformation
Typ: Microsoft.VisualStudio.TestTools.Common.TcmInformation
A TcmInformation obiekt, który jest używany do uzyskania dalszych danych dotyczących badań z Test Manager.
- testCaseName
Typ: System.String
Nazwa przypadku badania.
- isChildTestCase
Typ: System.Boolean
true Jeśli bieżącym przypadku badanie jest dziecka w innym przypadku badanie.
Zabezpieczenia programu .NET Framework
- Pełne zaufanie do bezpośredniego wywołującego. Tego elementu członkowskiego nie można używać w kodzie częściowo zaufanym. Aby uzyskać więcej informacji, zobacz Przy użyciu bibliotek z częściowo zaufanego kodu..
Zobacz też
Informacje
Przeciążenie TestCaseEventArgs