Skip to content

Commit 60c556c

Browse files
committed
Remove not used using, change ImageFormatException to InvalidImageContentException
1 parent 93b9345 commit 60c556c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.Chunks.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
using SixLabors.ImageSharp.Formats;
77
using SixLabors.ImageSharp.Formats.Png;
88
using SixLabors.ImageSharp.PixelFormats;
9-
using static SixLabors.ImageSharp.Tests.Memory.TestStructs;
109

1110
// ReSharper disable InconsistentNaming
1211
namespace SixLabors.ImageSharp.Tests.Formats.Png;
@@ -71,7 +70,7 @@ public void Decode_IncorrectCRCForCriticalChunk_ExceptionIsThrown(uint chunkType
7170
WriteChunk(memStream, chunkName);
7271
WriteDataChunk(memStream);
7372

74-
ImageFormatException exception =
73+
InvalidImageContentException exception =
7574
Assert.Throws<InvalidImageContentException>(() => PngDecoder.Instance.Decode<Rgb24>(DecoderOptions.Default, memStream));
7675

7776
Assert.Equal($"CRC Error. PNG {chunkName} chunk is corrupt!", exception.Message);

0 commit comments

Comments
 (0)