//---------------------------------------------------------------------
        private void CheckExpectedLines(LineReader reader,
            string     expectedLinesFile)
        {
            string path = System.IO.Path.Combine(dataDir, expectedLinesFile);
            List<ExpectedLine> lines = ExpectedLine.ReadLines(path);

            foreach (ExpectedLine expectedLine in lines) {
                string line = reader.ReadLine();
                Assert.IsNotNull(line);
                Assert.AreEqual(expectedLine.Number, reader.LineNumber);
                Assert.AreEqual(expectedLine.Text, line);
            }
            Assert.IsNull(reader.ReadLine());
            Assert.AreEqual(LineReader.EndOfInput, reader.LineNumber);
        }