File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
ImageSharp.Tests/Formats/Bmp Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -563,8 +563,11 @@ public void BmpDecoder_CanDecode_Os2BitmapArray<TPixel>(TestImageProvider<TPixel
563
563
[ WithFile ( Issue2696 , PixelTypes . Rgba32 ) ]
564
564
public void BmpDecoder_ThrowsException_Issue2696 < TPixel > ( TestImageProvider < TPixel > provider )
565
565
where TPixel : unmanaged, IPixel < TPixel >
566
- => Assert . Throws < InvalidImageContentException > ( ( ) =>
567
- {
568
- using Image < TPixel > image = provider . GetImage ( BmpDecoder . Instance ) ;
569
- } ) ;
566
+ {
567
+ InvalidImageContentException ex = Assert . Throws < InvalidImageContentException > ( ( ) =>
568
+ {
569
+ using Image < TPixel > image = provider . GetImage ( BmpDecoder . Instance ) ;
570
+ } ) ;
571
+ Assert . IsType < InvalidMemoryOperationException > ( ex . InnerException ) ;
572
+ }
570
573
}
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