public void SpanShouldStartAfterQuantifier()
        {
            // Arrange
            var childNode  = new CharacterNode('a');
            var quantifier = new QuantifierStarNode(childNode);
            var target     = new LazyNode(quantifier);

            // Act
            var(Start, Length) = target.GetSpan();

            // Assert
            Start.ShouldBe(2);
            Length.ShouldBe(1);
        }
        public void SpanShouldStartAfterPrefix()
        {
            // Arrange
            var childNode  = new CharacterNode('a');
            var quantifier = new QuantifierStarNode(childNode);
            var prefix     = new CommentGroupNode("X");
            var target     = new LazyNode(quantifier)
            {
                Prefix = prefix
            };

            // Act
            var(Start, Length) = target.GetSpan();

            // Assert
            Start.ShouldBe(7);
            Length.ShouldBe(1);
        }