File tree Expand file tree Collapse file tree
tests/ImageSharp.Tests/Formats/Icon/Ico Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -204,12 +204,19 @@ public void Bpp8Test(TestImageProvider<Rgba32> provider)
204204 }
205205
206206 [ Theory ]
207- [ WithFile ( InvalidAll , PixelTypes . Rgba32 ) ]
208207 [ WithFile ( InvalidBpp , PixelTypes . Rgba32 ) ]
208+ public void InvalidThrows_InvalidImageContentException ( TestImageProvider < Rgba32 > provider )
209+ => Assert . Throws < InvalidImageContentException > ( ( ) =>
210+ {
211+ using Image < Rgba32 > image = provider . GetImage ( IcoDecoder . Instance ) ;
212+ } ) ;
213+
214+ [ Theory ]
215+ [ WithFile ( InvalidAll , PixelTypes . Rgba32 ) ]
209216 [ WithFile ( InvalidCompression , PixelTypes . Rgba32 ) ]
210217 [ WithFile ( InvalidRLE4 , PixelTypes . Rgba32 ) ]
211218 [ WithFile ( InvalidRLE8 , PixelTypes . Rgba32 ) ]
212- public void InvalidTest ( TestImageProvider < Rgba32 > provider )
219+ public void InvalidThows_NotSupportedException ( TestImageProvider < Rgba32 > provider )
213220 => Assert . Throws < NotSupportedException > ( ( ) =>
214221 {
215222 using Image < Rgba32 > image = provider . GetImage ( IcoDecoder . Instance ) ;
You can’t perform that action at this time.
0 commit comments