ITmi.GetTestResults 方法

定义

重载

GetTestResults(TestRun, ITestElement)

从提供的测试运行中获取提供的测试结果的数组。

GetTestResults(TestRun)

从提供的测试运行中获取测试结果对象的数组。

GetTestResults(TestRun, ITestElement)

从提供的测试运行中获取提供的测试结果的数组。

public:
 cli::array <Microsoft::VisualStudio::TestTools::Common::TestResult ^> ^ GetTestResults(Microsoft::VisualStudio::TestTools::Common::TestRun ^ run, Microsoft::VisualStudio::TestTools::Common::ITestElement ^ test);
public Microsoft.VisualStudio.TestTools.Common.TestResult[] GetTestResults (Microsoft.VisualStudio.TestTools.Common.TestRun run, Microsoft.VisualStudio.TestTools.Common.ITestElement test);
abstract member GetTestResults : Microsoft.VisualStudio.TestTools.Common.TestRun * Microsoft.VisualStudio.TestTools.Common.ITestElement -> Microsoft.VisualStudio.TestTools.Common.TestResult[]
Public Function GetTestResults (run As TestRun, test As ITestElement) As TestResult()

参数

run
TestRun

TestRun 对象。

test
ITestElement

TestElement 对象。

返回

Microsoft.VisualStudio.TestTools.Common.TestResult[]

测试结果的数组。

适用于

GetTestResults(TestRun)

从提供的测试运行中获取测试结果对象的数组。

public:
 cli::array <Microsoft::VisualStudio::TestTools::Common::TestResult ^> ^ GetTestResults(Microsoft::VisualStudio::TestTools::Common::TestRun ^ run);
public Microsoft.VisualStudio.TestTools.Common.TestResult[] GetTestResults (Microsoft.VisualStudio.TestTools.Common.TestRun run);
abstract member GetTestResults : Microsoft.VisualStudio.TestTools.Common.TestRun -> Microsoft.VisualStudio.TestTools.Common.TestResult[]
Public Function GetTestResults (run As TestRun) As TestResult()

参数

run
TestRun

TestRun 对象。

返回

Microsoft.VisualStudio.TestTools.Common.TestResult[]

例外

run 参数为 null。

适用于