public void AsEnumerable_NotBoundedTooShort_ReturnsNone()
        {
            // arrange
            var interval = new Interval <int>(false, 0, 1, false);

            // act
            var actualIntegers = interval.AsEnumerable();

            // assert
            actualIntegers.Should().BeEmpty();
        }
        public void AsEnumerable_Bounded_ReturnsAllIntegers()
        {
            // arrange
            var interval         = new Interval <int>(true, 0, 3, true);
            var expectedIntegers = new List <int> {
                0, 1, 2, 3
            };

            // act
            var actualIntegers = interval.AsEnumerable();

            // assert
            actualIntegers.Should().BeEquivalentTo(expectedIntegers);
        }
        public void AsEnumerable_NotBounded_ReturnsClippedIntegers()
        {
            // arrange
            var interval         = new Interval <int>(false, 0, 3, false);
            var expectedIntegers = new List <int> {
                1, 2
            };

            // act
            var actualIntegers = interval.AsEnumerable();

            // assert
            actualIntegers.Should().BeEquivalentTo(expectedIntegers);
        }