ITestMethodInvoker.Invoke Method
Invokes a test method by using the provided parameters.
Namespace: Microsoft.VisualStudio.TestTools.UnitTesting
Assembly: Microsoft.VisualStudio.QualityTools.UnitTestFramework (in Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll)
Syntax
'Declaration
Function Invoke ( _
ParamArray parameters As Object() _
) As TestMethodInvokerResult
TestMethodInvokerResult Invoke(
params Object[] parameters
)
TestMethodInvokerResult^ Invoke(
... array<Object^>^ parameters
)
abstract Invoke :
parameters:Object[] -> TestMethodInvokerResult
function Invoke(
... parameters : Object[]
) : TestMethodInvokerResult
Parameters
parameters
Type: array<Object[]Optional parameter that is passed to the invoker.
Return Value
Type: Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodInvokerResult
The result of the test method invocation.
.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.