Share via


STATestMethodAttribute.ExecuteAsync(ITestMethod) Method

Definition

Executes a test method.

public override System.Threading.Tasks.Task<Microsoft.VisualStudio.TestTools.UnitTesting.TestResult[]> ExecuteAsync(Microsoft.VisualStudio.TestTools.UnitTesting.ITestMethod testMethod);
override this.ExecuteAsync : Microsoft.VisualStudio.TestTools.UnitTesting.ITestMethod -> System.Threading.Tasks.Task<Microsoft.VisualStudio.TestTools.UnitTesting.TestResult[]>
Public Overrides Function ExecuteAsync (testMethod As ITestMethod) As Task(Of TestResult())

Parameters

testMethod
ITestMethod

The test method to execute.

Returns

Task<Microsoft.VisualStudio.TestTools.UnitTesting.TestResult[]>

An array of TestResult objects that represent the outcome(s) of the test.

Applies to