The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
IHostAdapter::GetTestAdapter Method (ITestElement^, IRunContext^)
Loads and returns the test adapter for the given test element and run context.
Assembly: Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
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.
Legacy Code Example
Show: