public void CanApplyToCurrentContextShouldReturnTrueWhenVariableIsSet()
        {
            // Setup
            var environment    = new TestEnvironment();
            var log            = new Mock <ILog>().Object;
            var azurePipelines = new AzurePipelines(environment, log);

            environment.SetEnvironmentVariable("TF_BUILD", "True");

            // Act & Assert
            azurePipelines.CanApplyToCurrentContext().ShouldBe(true);
        }
        public void CanApplyToCurrentContextShouldReturnFalseWhenVariableIsNullOrEmpty(string variableValue)
        {
            // Setup
            var environment    = new TestEnvironment();
            var log            = new Mock <ILog>().Object;
            var azurePipelines = new AzurePipelines(environment, log);

            environment.SetEnvironmentVariable("TF_BUILD", variableValue);

            // Act & Assert
            azurePipelines.CanApplyToCurrentContext().ShouldBe(false);
        }