Assert.Fail($"Expected '{ToArgbCode(expectedColor)}' in rectangle '{rect}'.");
Assert.Fail($"Expected '{ToArgbCode(expectedColor)}' in rectangle '{rect}', but no pixel has this color. The closest pixel found is '{ToArgbCode(min.color)}' at '{min.x},{min.y}' with a (exclusive) difference of {min.diff}.");
}
/// <summary>
...
...
@@ -76,9 +81,9 @@ public static partial class ImageAssert
/// Returns the color that results from blending the color with the given background color.
/// </summary>
/// <param name="color">The color to blend.</param>
/// <param name="background">The background color to use. This is assumed to be opaque (not checked for perf reason when used on pixel buffer).</param>
/// <returns>The color that results from blending the color with the given background color.</returns>
/// Returns the color that results from blending the color with the given background color.
/// </summary>
/// <param name="background">The background color to use. This is assumed to be opaque (not checked for perf reason when used on pixel buffer).</param>
/// <returns>The color that results from blending the color with the given background color.</returns>