Share via


STATestMethodAttribute.ExecuteCoreAsync(ITestMethod) Method

Definition

The core execution of STA test method, which happens on the STA thread.

protected virtual System.Threading.Tasks.Task<Microsoft.VisualStudio.TestTools.UnitTesting.TestResult[]> ExecuteCoreAsync(Microsoft.VisualStudio.TestTools.UnitTesting.ITestMethod testMethod);
abstract member ExecuteCoreAsync : Microsoft.VisualStudio.TestTools.UnitTesting.ITestMethod -> System.Threading.Tasks.Task<Microsoft.VisualStudio.TestTools.UnitTesting.TestResult[]>
override this.ExecuteCoreAsync : Microsoft.VisualStudio.TestTools.UnitTesting.ITestMethod -> System.Threading.Tasks.Task<Microsoft.VisualStudio.TestTools.UnitTesting.TestResult[]>
Protected Overridable Function ExecuteCoreAsync (testMethod As ITestMethod) As Task(Of TestResult())

Parameters

testMethod
ITestMethod

The test method to execute.

Returns

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

The test results of the test method.

Applies to