IHostAdapter.GetTestAdapter(ITestElement, IRunContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Loads and returns the test adapter for the given test element and run context.
public:
Microsoft::VisualStudio::TestTools::TestAdapter::ITestAdapter ^ GetTestAdapter(Microsoft::VisualStudio::TestTools::Common::ITestElement ^ test, Microsoft::VisualStudio::TestTools::Execution::IRunContext ^ runContext);
public Microsoft.VisualStudio.TestTools.TestAdapter.ITestAdapter GetTestAdapter (Microsoft.VisualStudio.TestTools.Common.ITestElement test, Microsoft.VisualStudio.TestTools.Execution.IRunContext runContext);
abstract member GetTestAdapter : Microsoft.VisualStudio.TestTools.Common.ITestElement * Microsoft.VisualStudio.TestTools.Execution.IRunContext -> Microsoft.VisualStudio.TestTools.TestAdapter.ITestAdapter
Public Function GetTestAdapter (test As ITestElement, runContext As IRunContext) As ITestAdapter
Parameters
- test
- ITestElement
An ITestElement that describes which test adapter to load.
- runContext
- IRunContext
The IRunContext for the test adapter.
Returns
The current ITestAdapter.