diff --git a/tests/ImageSharp.Tests/Processing/Normalization/HistogramEqualizationTests.cs b/tests/ImageSharp.Tests/Processing/Normalization/HistogramEqualizationTests.cs index 3610f9683d..c712325249 100644 --- a/tests/ImageSharp.Tests/Processing/Normalization/HistogramEqualizationTests.cs +++ b/tests/ImageSharp.Tests/Processing/Normalization/HistogramEqualizationTests.cs @@ -123,7 +123,7 @@ namespace SixLabors.ImageSharp.Tests.Processing.Normalization [Theory] [WithTestPatternImages(110, 110, PixelTypes.Rgba32)] [WithTestPatternImages(170, 170, PixelTypes.Rgba32)] - public void Issue984_DoesNotThrowException(TestImageProvider provider) + public void Issue984(TestImageProvider provider) where TPixel : struct, IPixel { using (Image image = provider.GetImage()) @@ -135,8 +135,8 @@ namespace SixLabors.ImageSharp.Tests.Processing.Normalization ClipHistogram = true, NumberOfTiles = 10 }; - System.Exception ex = Record.Exception(() => image.Mutate(x => x.HistogramEqualization(options))); - Assert.Null(ex); + image.Mutate(x => x.HistogramEqualization(options)); + image.DebugSave(provider); } } }