public void CanApplyToCurrentContext()
        {
            EnvRun envrun = new EnvRun(environment, log);
            bool   applys = envrun.CanApplyToCurrentContext();

            applys.ShouldBeTrue();
        }
示例#2
0
 public void CanApplyToCurrentContext_EnvironmentVariableNotSet()
 {
     Environment.SetEnvironmentVariable(EnvVarName, null, EnvironmentVariableTarget.Process);
     EnvRun envrun = new EnvRun();
     bool applys = envrun.CanApplyToCurrentContext();
     applys.ShouldBeFalse();
 }
        public void CanApplyToCurrentContext_EnvironmentVariableNotSet()
        {
            environment.SetEnvironmentVariable(EnvVarName, null);
            EnvRun envrun = new EnvRun(environment, log);
            bool   applys = envrun.CanApplyToCurrentContext();

            applys.ShouldBeFalse();
        }
示例#4
0
        public void CanApplyToCurrentContext()
        {
            var applys = buildServer.CanApplyToCurrentContext();

            applys.ShouldBeTrue();
        }