assertBackgroundColor method

void assertBackgroundColor(
  1. int x,
  2. int y,
  3. Color expected
)

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',
    );
  }
}