assertLoggedCount method
Assert that exactly expected entries were recorded in total.
Throws AssertionError if the count does not match.
Implementation
void assertLoggedCount(int expected) {
final actual = _driver._entries.length;
if (actual != expected) {
throw AssertionError(
'Expected $expected log entries but $actual were recorded.',
);
}
}