ITestRunner.Run(ITestElement[], IResultSink) 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.
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.