private void CheckLineInfo(ILineInfo lineInfo, int expectedLine, int expectedPos = -1)
        {
            Assert.NotNull(lineInfo);
            Assert.True(lineInfo.HasLineInfo());
            Assert.Equal(expectedLine, lineInfo.LineNumber);

            if (expectedPos > -1)
            {
                Assert.Equal(expectedPos, lineInfo.LinePosition);
            }
        }