From 60c556cd2a096288bcff95172105eb5d55d56ca0 Mon Sep 17 00:00:00 2001 From: Brian Popow Date: Mon, 9 Mar 2026 17:59:40 +0100 Subject: [PATCH] Remove not used using, change ImageFormatException to InvalidImageContentException --- tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.Chunks.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.Chunks.cs b/tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.Chunks.cs index c31fa5831c..0b46e7f878 100644 --- a/tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.Chunks.cs +++ b/tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.Chunks.cs @@ -6,7 +6,6 @@ using System.Text; using SixLabors.ImageSharp.Formats; using SixLabors.ImageSharp.Formats.Png; using SixLabors.ImageSharp.PixelFormats; -using static SixLabors.ImageSharp.Tests.Memory.TestStructs; // ReSharper disable InconsistentNaming namespace SixLabors.ImageSharp.Tests.Formats.Png; @@ -71,7 +70,7 @@ public partial class PngDecoderTests WriteChunk(memStream, chunkName); WriteDataChunk(memStream); - ImageFormatException exception = + InvalidImageContentException exception = Assert.Throws(() => PngDecoder.Instance.Decode(DecoderOptions.Default, memStream)); Assert.Equal($"CRC Error. PNG {chunkName} chunk is corrupt!", exception.Message);