assertBackgroundColor method
Implementation
void assertBackgroundColor(int x, int y, Color expected) {
final actual = backgroundColorAt(x, y);
if (actual != expected) {
throw AssertionError(
'Background color at ($x, $y) does not match:\n Expected: $expected\n Actual: $actual',
);
}
}