Share via


IHostAdapter.GetTestAdapter(ITestElement, IRunContext) Method

Definition

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.

Applies to