コード例 #1
0
 public void CanNotApplyCurrentContextWhenEnvironmentVariableIsNotSet()
 {
     ClearEnvironmentVariableForDetection();
     var j = new Jenkins();
     j.CanApplyToCurrentContext().ShouldBe(false);  
 }
コード例 #2
0
 public void CanApplyCurrentContextWhenEnvironmentVariableIsSet()
 {
     SetEnvironmentVariableForDetection();
     var j = new Jenkins();
     j.CanApplyToCurrentContext().ShouldBe(true);
 }