예제 #1
0
        public void GivenIntervalShouldEvaluateUpperNotIncludingEnd()
        {
            var interval = new IntervalWithValue <long, long>(1, 5, 0);

            Assert.Equal(IntervalResult.UPPER, interval.Evaluate(5, false, false));
        }
예제 #2
0
        public void GivenIntervalShouldEvaluateContainedIncludingEnd()
        {
            var interval = new IntervalWithValue <long, long>(1, 5, 0);

            Assert.Equal(IntervalResult.CONTAINED, interval.Evaluate(5, false, true));
        }
예제 #3
0
        public void GivenIntervalShouldEvaluateUnderNotIncludingInit()
        {
            var interval = new IntervalWithValue <long, long>(1, 5, 0);

            Assert.Equal(IntervalResult.UNDER, interval.Evaluate(1, false, false));
        }