Пример #1
0
        public void FileAdapter_should_read_next_line_from_offset(
            string content,
            int offset,
            int length,
            string expected
            )
        {
            var path       = "FileAdapter_should_read_next_line_from_start.txt";
            var bufferSize = 65 * 1024 * 1024;

            File.Delete(path);
            File.AppendAllText(path, content);

            var actual = _fileAdapter.ReadLines(path, bufferSize, offset, length);

            Assert.Equal(expected, actual);
        }