public void GivenIntervalShouldEvaluateUpperNotIncludingEnd() { var interval = new IntervalWithValue <long, long>(1, 5, 0); Assert.Equal(IntervalResult.UPPER, interval.Evaluate(5, false, false)); }
public void GivenIntervalShouldEvaluateContainedIncludingEnd() { var interval = new IntervalWithValue <long, long>(1, 5, 0); Assert.Equal(IntervalResult.CONTAINED, interval.Evaluate(5, false, true)); }
public void GivenIntervalShouldEvaluateUnderNotIncludingInit() { var interval = new IntervalWithValue <long, long>(1, 5, 0); Assert.Equal(IntervalResult.UNDER, interval.Evaluate(1, false, false)); }