ITmi.GetTestResults 方法 (TestRun)

此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。

获取一个由所提供的测试运行中的测试结果对象组成的数组。

命名空间:  Microsoft.VisualStudio.TestTools.Common
程序集:  Microsoft.VisualStudio.QualityTools.Common(在 Microsoft.VisualStudio.QualityTools.Common.dll 中)

语法

声明
Function GetTestResults ( _
    run As TestRun _
) As TestResult()
TestResult[] GetTestResults(
    TestRun run
)
array<TestResult^>^ GetTestResults(
    TestRun^ run
)
abstract GetTestResults : 
        run:TestRun -> TestResult[] 
function GetTestResults(
    run : TestRun
) : TestResult[]

参数

返回值

类型:array<Microsoft.VisualStudio.TestTools.Common.TestResult[]

异常

异常 条件
[ArgumentException]

run 参数为 nullnull 引用(在 Visual Basic 中为 Nothing)。

.NET Framework 安全性

请参见

参考

ITmi 接口

GetTestResults 重载

Microsoft.VisualStudio.TestTools.Common 命名空间

TestRun

TestResult