Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.ITestElement
An ITestElement that describes which test adapter to load.
- runContext
Type: Microsoft.VisualStudio.TestTools.Execution.IRunContext
The 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.