assertBufferLines method
Implementation
void assertBufferLines(List<String> expected) {
final List<String> actual = lines;
final int maxHeight =
actual.length > expected.length ? actual.length : expected.length;
final List<String> diffs = _collectLineDiffs(actual, expected, maxHeight);
if (diffs.isNotEmpty) {
throw _buildBufferMismatchError(actual, diffs);
}
}