Browse Source

Review suggestion

Co-authored-by: Anton Firszov <antonfir@gmail.com>
pull/1898/head
Brian Popow 4 years ago
committed by GitHub
parent
commit
f3a5ba0b4d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs

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

@ -302,11 +302,10 @@ namespace SixLabors.ImageSharp.Tests.Formats.Png
public void Decode_InvalidDataChunkCrc_ThrowsException<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel>
{
Exception ex = Record.Exception(
InvalidImageContentException ex = Assert.Throws<InvalidImageContentException>(
() =>
{
using Image<TPixel> image = provider.GetImage(PngDecoder);
image.DebugSave(provider);
});
Assert.NotNull(ex);
Assert.Contains("CRC Error. PNG IDAT chunk is corrupt!", ex.Message);

Loading…
Cancel
Save