ITestRunner.Run – metoda
Spuštění testovacího případu.
Obor názvů: Microsoft.VisualStudio.TestTools.Execution
Sestavení: Microsoft.VisualStudio.QualityTools.ExecutionCommon (v Microsoft.VisualStudio.QualityTools.ExecutionCommon.dll)
Syntaxe
'Deklarace
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
Parametry
- testElement
Typ: array<Microsoft.VisualStudio.TestTools.Common.ITestElement[]
Pole ITestElement objekty execute.
- resultSink
Typ: Microsoft.VisualStudio.TestTools.Execution.IResultSink
IResultSink Ukládat výsledky testů.
Vrácená hodnota
Typ: Microsoft.VisualStudio.TestTools.Execution.AdapterRunResult
Člen AdapterRunResult výčtu znamená úspěch nebo selhání každý test.
Zabezpečení rozhraní .NET Framework
- Plná důvěra přímému volajícímu. Částečně zabezpečený kód nemůže tento člen použít. Další informace naleznete v tématu Používání knihoven z částečně důvěryhodného kódu.