Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Loads and returns the test adapter for the given test element and run context.
Namespace: Microsoft.VisualStudio.TestTools.Execution
Assembly: Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
Syntax
'Declaration
Function GetTestAdapter ( _
test As ITestElement, _
runContext As IRunContext _
) As ITestAdapter
ITestAdapter GetTestAdapter(
ITestElement test,
IRunContext runContext
)
ITestAdapter^ GetTestAdapter(
ITestElement^ test,
IRunContext^ runContext
)
abstract GetTestAdapter :
test:ITestElement *
runContext:IRunContext -> ITestAdapter
function GetTestAdapter(
test : ITestElement,
runContext : IRunContext
) : ITestAdapter
Parameters
test
Type: Microsoft.VisualStudio.TestTools.Common.ITestElementAn ITestElement that describes which test adapter to load.
runContext
Type: Microsoft.VisualStudio.TestTools.Execution.IRunContextThe IRunContext for the test adapter.
Return Value
Type: Microsoft.VisualStudio.TestTools.TestAdapter.ITestAdapter
The current ITestAdapter.
Examples
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.