diff --git a/tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs b/tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs index 9487c4ce9a..6ebe1bf4e0 100644 --- a/tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs +++ b/tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs @@ -589,7 +589,7 @@ public class BmpDecoderTests using MemoryStream stream = new(bmp); - InvalidImageContentException ex = Assert.Throws(() => + Assert.Throws(() => { using Image image = BmpDecoder.Instance.Decode(DecoderOptions.Default, stream); });