File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
ImageSharp.Tests/Formats/Bmp Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -624,9 +624,13 @@ public void BmpDecoder_CanDecode_Os2BitmapArray<TPixel>(TestImageProvider<TPixel
624
624
[ WithFile ( Issue2696 , PixelTypes . Rgba32 ) ]
625
625
public void BmpDecoder_ThrowsException_Issue2696 < TPixel > ( TestImageProvider < TPixel > provider )
626
626
where TPixel : unmanaged, IPixel < TPixel >
627
- => Assert . Throws < InvalidImageContentException > ( ( ) =>
628
- {
629
- using Image < TPixel > image = provider . GetImage ( BmpDecoder ) ;
630
- } ) ;
627
+ {
628
+ // On V2 this is throwing InvalidOperationException,
629
+ // because of the validation logic in BmpInfoHeader.VerifyDimensions().
630
+ Assert . Throws < InvalidOperationException > ( ( ) =>
631
+ {
632
+ using Image < TPixel > image = provider . GetImage ( BmpDecoder ) ;
633
+ } ) ;
634
+ }
631
635
}
632
636
}
Original file line number Diff line number Diff line change 1
1
version https://git-lfs.github.com/spec/v1
2
- oid sha256:de7e7ec0454a55f6a76c859f356b240a3d4cb56ca50dfa209a1813dd09e12076
3
- size 143
2
+ oid sha256:bc42cda9bac8fc73351ad03bf55214069bb8d31ea5bdd806321a8cc8b56c282e
3
+ size 126
You can’t perform that action at this time.
0 commit comments