public void FileSource_should_count_lines_in_a_real_file(int chunkSize, int readAhead)
{
var s = FileIO.FromFile(ManyLines(), chunkSize)
.WithAttributes(Attributes.CreateInputBuffer(readAhead, readAhead));
var f = s.RunWith(
Sink.Aggregate<ByteString, int>(0, (acc, l) => acc + l.DecodeString(Encoding.UTF8).Count(c => c == '\n')),
_materializer);
f.Wait(TimeSpan.FromSeconds(3)).Should().BeTrue();
var lineCount = f.Result;
lineCount.Should().Be(LinesCount);
}