STATestMethodAttribute.ExecuteAsync(ITestMethod) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
An array of TestResult objects that represent the outcome(s) of the test.