Browse Source

Remove not used using, change ImageFormatException to InvalidImageContentException

pull/3080/head
Brian Popow 2 months ago
parent
commit
60c556cd2a
  1. 3
      tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.Chunks.cs

3
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<InvalidImageContentException>(() => PngDecoder.Instance.Decode<Rgb24>(DecoderOptions.Default, memStream));
Assert.Equal($"CRC Error. PNG {chunkName} chunk is corrupt!", exception.Message);

Loading…
Cancel
Save