File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
tests/ImageSharp.Tests/Formats/Icon/Ico Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -172,13 +172,14 @@ public void Bpp8Test(TestImageProvider<Rgba32> provider)
172
172
[ WithFile ( InvalidRLE4 , PixelTypes . Rgba32 ) ]
173
173
[ WithFile ( InvalidRLE8 , PixelTypes . Rgba32 ) ]
174
174
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 ) ;
177
178
178
- image . DebugSaveMultiFrame ( provider , extension : "png" ) ;
179
+ image . DebugSaveMultiFrame ( provider , extension : "png" ) ;
179
180
180
- // TODO: Assert metadata, frame count, etc
181
- }
181
+ // TODO: Assert metadata, frame count, etc
182
+ } ) ;
182
183
183
184
[ Theory ]
184
185
[ WithFile ( MixedBmpPngA , PixelTypes . Rgba32 ) ]
You can’t perform that action at this time.
0 commit comments