ITmi.GetTestResults 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 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()
参数
- 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()
参数
返回
- Microsoft.VisualStudio.TestTools.Common.TestResult[]
例外
run 参数为 null。