public void CanApplyCurrentContextWhenEnvironmentVariableIsSet()
    {
        SetEnvironmentVariableForDetection();
        var j = new Jenkins();

        j.CanApplyToCurrentContext().ShouldBe(true);
    }
    public void CanNotApplyCurrentContextWhenEnvironmentVariableIsNotSet()
    {
        ClearEnvironmentVariableForDetection();
        var j = new Jenkins();

        j.CanApplyToCurrentContext().ShouldBe(false);
    }
Beispiel #3
0
 public void CanApplyCurrentContextWhenenvironmentVariableIsSet()
 {
     SetEnvironmentVariableForDetection();
     buildServer.CanApplyToCurrentContext().ShouldBe(true);
 }