예제 #1
0
        public void BetweenNonInclusive_ShouldCalculateCorrectRange(int firstPosition, int firstLength, int secondPosition, int secondLength, string expectedBetweenRange)
        {
            var first  = new TextSpan(firstPosition, firstLength);
            var second = new TextSpan(secondPosition, secondLength);

            TextSpan.BetweenExclusive(first, second).ToString().Should().Be(expectedBetweenRange);
            TextSpan.BetweenExclusive(second, first).ToString().Should().Be(expectedBetweenRange);
        }