void (Control.Painter painter, Control control, int... expected) { for (int depth : new int[]{Integer.MIN_VALUE, -1, -10, 0}) { assertControlOffset(painter, control, depth, true); assertControlOffset(painter, control, depth, false); } for (int depth = 0; depth < expected.length; depth++) { assertControlOffset(painter, control, depth + 1, true); assertControlOffset(painter, control, depth + 1, expected[depth]); } }