Share via


TestMethodAttribute.ExecuteAsync(ITestMethod) Method

Definition

Executes a test method.

public virtual System.Threading.Tasks.Task<Microsoft.VisualStudio.TestTools.UnitTesting.TestResult[]> ExecuteAsync(Microsoft.VisualStudio.TestTools.UnitTesting.ITestMethod testMethod);
abstract member ExecuteAsync : Microsoft.VisualStudio.TestTools.UnitTesting.ITestMethod -> System.Threading.Tasks.Task<Microsoft.VisualStudio.TestTools.UnitTesting.TestResult[]>
override this.ExecuteAsync : Microsoft.VisualStudio.TestTools.UnitTesting.ITestMethod -> System.Threading.Tasks.Task<Microsoft.VisualStudio.TestTools.UnitTesting.TestResult[]>
Public Overridable 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.

Remarks

Extensions can override this method to customize running a TestMethod.

Applies to