SkipIfEnvironmentVariableNotEnabledAttribute Class

Skip test if a given environment variable is not enabled. To enable the test, set environment variable to “true” for the test process.

Namespace
Microsoft.AspNetCore.Server.Testing
Assemblies
  • Microsoft.AspNetCore.Server.Testing

Syntax

[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public class SkipIfEnvironmentVariableNotEnabledAttribute : Attribute, _Attribute, ITestCondition
class Microsoft.AspNetCore.Server.Testing.SkipIfEnvironmentVariableNotEnabledAttribute

Constructors

SkipIfEnvironmentVariableNotEnabledAttribute(System.String)
public SkipIfEnvironmentVariableNotEnabledAttribute(string environmentVariableName)

Properties

Microsoft.AspNetCore.Server.Testing.SkipIfEnvironmentVariableNotEnabledAttribute.AdditionalInfo
Return type:System.String
public string AdditionalInfo { get; set; }
Microsoft.AspNetCore.Server.Testing.SkipIfEnvironmentVariableNotEnabledAttribute.IsMet
Return type:System.Boolean
public bool IsMet { get; }
Microsoft.AspNetCore.Server.Testing.SkipIfEnvironmentVariableNotEnabledAttribute.SkipReason
Return type:System.String
public string SkipReason { get; }