Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Runs a test case.
Namespace: Microsoft.VisualStudio.TestTools.Execution
Assembly: Microsoft.VisualStudio.QualityTools.ExecutionCommon (in Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
Syntax
'Declaration
Function Run ( _
testElement As ITestElement(), _
resultSink As IResultSink _
) As AdapterRunResult
AdapterRunResult Run(
ITestElement[] testElement,
IResultSink resultSink
)
AdapterRunResult Run(
array<ITestElement^>^ testElement,
IResultSink^ resultSink
)
abstract Run :
testElement:ITestElement[] *
resultSink:IResultSink -> AdapterRunResult
function Run(
testElement : ITestElement[],
resultSink : IResultSink
) : AdapterRunResult
Parameters
testElement
Type: array<Microsoft.VisualStudio.TestTools.Common.ITestElement[]Array of ITestElement objects to execute.
resultSink
Type: Microsoft.VisualStudio.TestTools.Execution.IResultSinkAn IResultSink to store the results of the tests.
Return Value
Type: Microsoft.VisualStudio.TestTools.Execution.AdapterRunResult
A member of the AdapterRunResult enumeration that indicates the success or failure of each test.
.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.