File tree Expand file tree Collapse file tree
tests/ImageSharp.Tests/Formats/Png Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66using SixLabors . ImageSharp . Formats ;
77using SixLabors . ImageSharp . Formats . Png ;
88using SixLabors . ImageSharp . PixelFormats ;
9- using static SixLabors . ImageSharp . Tests . Memory . TestStructs ;
109
1110// ReSharper disable InconsistentNaming
1211namespace 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 ) ;
You can’t perform that action at this time.
0 commit comments