ITestFramework.CloseTestSessionAsync(CloseTestSessionContext) 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.
Ask to the test framework to destroy the test session and release all the resources.
public System.Threading.Tasks.Task<Microsoft.Testing.Platform.Extensions.TestFramework.CloseTestSessionResult> CloseTestSessionAsync(Microsoft.Testing.Platform.Extensions.TestFramework.CloseTestSessionContext context);
abstract member CloseTestSessionAsync : Microsoft.Testing.Platform.Extensions.TestFramework.CloseTestSessionContext -> System.Threading.Tasks.Task<Microsoft.Testing.Platform.Extensions.TestFramework.CloseTestSessionResult>
Public Function CloseTestSessionAsync (context As CloseTestSessionContext) As Task(Of CloseTestSessionResult)
Parameters
- context
- CloseTestSessionContext
The test session destruction context.