public void CanApplyToCurrentContext() { EnvRun envrun = new EnvRun(environment, log); bool applys = envrun.CanApplyToCurrentContext(); applys.ShouldBeTrue(); }
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(); }
public void CanApplyToCurrentContext() { var applys = buildServer.CanApplyToCurrentContext(); applys.ShouldBeTrue(); }