ITestRunner.Run(ITestElement[], IResultSink) 方法

定义

运行测试用例。

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

参数

testElement
ITestElement[]

ITestElement要执行的对象的数组。

resultSink
IResultSink

IResultSink用于存储测试结果的。

返回

AdapterRunResult

枚举的成员 AdapterRunResult ,指示每个测试的成功或失败。

适用于