public void IsInRange_() { var range = new BoundedRange <int>(0, BoundType.Exclude, 10, BoundType.Include); bool inRange = range.IsValueInRange(5); Assert.IsTrue(inRange); }
public void IsInRange_PassUpperLimit_ShouldReturnTrue() { var range = new BoundedRange <int>(0, BoundType.Exclude, 10, BoundType.Include); bool inRange = range.IsValueInRange(10); Assert.IsTrue(inRange); }
public bool IsBroken() => !_allowedNumbers.IsValueInRange(_number);