This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Gets an array of test result objects from the provided test run.
Namespace:  Microsoft.VisualStudio.TestTools.Common
Assembly:  Microsoft.VisualStudio.QualityTools.Common (in Microsoft.VisualStudio.QualityTools.Common.dll)
Syntax
'Declaration
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[]
Parameters
- run 
 Type: Microsoft.VisualStudio.TestTools.Common.TestRun- A TestRun object. 
Return Value
Type: array<Microsoft.VisualStudio.TestTools.Common.TestResult[]
Exceptions
| Exception | Condition | 
|---|---|
| ArgumentException | The run parameter is nulla null reference (Nothing in Visual Basic). | 
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.