コード例 #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));
        }