Example #1
0
        public void Contains_WithTestCases_ProducesExpectedResults(int start, int end, int value, bool expected)
        {
            var interval = Interval.Create(start, end);

            var output = IntervalExtensions.Contains(interval, value);

            Assert.That(output, Is.EqualTo(expected));
        }
Example #2
0
        public void Contains_NullInterval_ReturnsFalse()
        {
            var output = IntervalExtensions.Contains(null, 0);

            Assert.That(output, Is.False);
        }