public void ShouldNotRestrictJobsWhenLimitNotReached() { var concurrentJobRestriction = new ConcurrentJobRestriction { MaximumParallelJobs = 3 }; concurrentJobRestriction.RestrictStart("job", new string[] { "1", "2" }).Should().BeFalse(); }
public void ShouldNotCountAllJobsInExceptionList() { var concurrentJobRestriction = new ConcurrentJobRestriction { MaximumParallelJobs = 1, ExceptionList = new[] { "job2", "job" } }; concurrentJobRestriction.RestrictStart("1", new string[] { "job", "job2" }).Should().BeFalse(); }