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

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

        j.CanApplyToCurrentContext().ShouldBe(false);
    }
Exemplo n.º 3
0
 public void CanApplyCurrentContextWhenenvironmentVariableIsSet()
 {
     SetEnvironmentVariableForDetection();
     buildServer.CanApplyToCurrentContext().ShouldBe(true);
 }