assertCenterPixelOfColor

open fun assertCenterPixelOfColor(failMessagePrefix: String, @NonNull drawable: @NonNull Drawable, drawableWidth: Int, drawableHeight: Int, callSetBounds: Boolean, @ColorInt color: Int, allowedComponentVariance: Int, throwExceptionIfFails: Boolean)(source)

Checks whether the center pixel in the specified drawable is of the same specified color. In case there is a color mismatch, the behavior of this method depends on the throwExceptionIfFails parameter. If it is true, this method will throw an Exception describing the mismatch. Otherwise this method will call Assert.fail with detailed description of the mismatch.


open fun assertCenterPixelOfColor(failMessagePrefix: String, @NonNull bitmap: @NonNull Bitmap, @ColorInt color: Int, allowedComponentVariance: Int, throwExceptionIfFails: Boolean)(source)

Checks whether the center pixel in the specified bitmap is of the same specified color. In case there is a color mismatch, the behavior of this method depends on the throwExceptionIfFails parameter. If it is true, this method will throw an Exception describing the mismatch. Otherwise this method will call Assert.fail with detailed description of the mismatch.