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 @@ -172,13 +172,14 @@ public void Bpp8Test(TestImageProvider<Rgba32> provider)
172172 [ WithFile ( InvalidRLE4 , PixelTypes . Rgba32 ) ]
173173 [ WithFile ( InvalidRLE8 , PixelTypes . Rgba32 ) ]
174174 public void InvalidTest ( TestImageProvider < Rgba32 > provider )
175- {
176- using Image < Rgba32 > image = provider . GetImage ( IcoDecoder . Instance ) ;
175+ => Assert . Throws < NotSupportedException > ( ( ) =>
176+ {
177+ using Image < Rgba32 > image = provider . GetImage ( IcoDecoder . Instance ) ;
177178
178- image . DebugSaveMultiFrame ( provider , extension : "png" ) ;
179+ image . DebugSaveMultiFrame ( provider , extension : "png" ) ;
179180
180- // TODO: Assert metadata, frame count, etc
181- }
181+ // TODO: Assert metadata, frame count, etc
182+ } ) ;
182183
183184 [ Theory ]
184185 [ WithFile ( MixedBmpPngA , PixelTypes . Rgba32 ) ]
You can’t perform that action at this time.
0 commit comments