ITestHostEnvironmentVariableProvider Interface

Definition

Represents an interface for providing environment variables to the test host.

C#
public interface ITestHostEnvironmentVariableProvider : Microsoft.Testing.Platform.Extensions.TestHostControllers.ITestHostControllersExtension
Implements

Properties

Description

Gets the description of the extension.

(Inherited from IExtension)
DisplayName

Gets the display name of the extension.

(Inherited from IExtension)
Uid

Gets the unique identifier for the extension.

(Inherited from IExtension)
Version

Gets the version of the extension (ideally semantic version).

(Inherited from IExtension)

Methods

IsEnabledAsync()

Controls whether the extension is enabled or not. This is useful for extensions that are always registered but only enabled when certain conditions are met. For example, an extension that would want to be run only when its associated command line option is provided by the user.

(Inherited from IExtension)
UpdateAsync(IEnvironmentVariables)

Updates the environment variables for the test host asynchronously.

ValidateTestHostEnvironmentVariablesAsync(IReadOnlyEnvironmentVariables)

Validates the test host environment variables asynchronously.

Applies to

Produkt Versionen
Microsoft Testing Platform 1.0.2, 1.1.0, 1.2.1, 1.3.2, 1.4.3, 1.5.3, 1.6.0