ITestRunner.Run(ITestElement[], IResultSink) Method

Definition

Runs a test case.

public:
 Microsoft::VisualStudio::TestTools::Execution::AdapterRunResult Run(cli::array <Microsoft::VisualStudio::TestTools::Common::ITestElement ^> ^ testElement, Microsoft::VisualStudio::TestTools::Execution::IResultSink ^ resultSink);
public Microsoft.VisualStudio.TestTools.Execution.AdapterRunResult Run (Microsoft.VisualStudio.TestTools.Common.ITestElement[] testElement, Microsoft.VisualStudio.TestTools.Execution.IResultSink resultSink);
abstract member Run : Microsoft.VisualStudio.TestTools.Common.ITestElement[] * Microsoft.VisualStudio.TestTools.Execution.IResultSink -> Microsoft.VisualStudio.TestTools.Execution.AdapterRunResult
Public Function Run (testElement As ITestElement(), resultSink As IResultSink) As AdapterRunResult

Parameters

testElement
ITestElement[]

Array of ITestElement objects to execute.

resultSink
IResultSink

An IResultSink to store the results of the tests.

Returns

A member of the AdapterRunResult enumeration that indicates the success or failure of each test.

Applies to