File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
tests/ImageSharp.Tests/Formats/Icon/Ico Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,6 @@ public void Bpp8Test(TestImageProvider<Rgba32> provider)
168
168
[ WithFile ( InvalidAll , PixelTypes . Rgba32 ) ]
169
169
[ WithFile ( InvalidBpp , PixelTypes . Rgba32 ) ]
170
170
[ WithFile ( InvalidCompression , PixelTypes . Rgba32 ) ]
171
- [ WithFile ( InvalidPng , PixelTypes . Rgba32 ) ]
172
171
[ WithFile ( InvalidRLE4 , PixelTypes . Rgba32 ) ]
173
172
[ WithFile ( InvalidRLE8 , PixelTypes . Rgba32 ) ]
174
173
public void InvalidTest ( TestImageProvider < Rgba32 > provider )
@@ -181,6 +180,17 @@ public void InvalidTest(TestImageProvider<Rgba32> provider)
181
180
// TODO: Assert metadata, frame count, etc
182
181
} ) ;
183
182
183
+ [ Theory ]
184
+ [ WithFile ( InvalidPng , PixelTypes . Rgba32 ) ]
185
+ public void InvalidPngTest ( TestImageProvider < Rgba32 > provider )
186
+ {
187
+ using Image < Rgba32 > image = provider . GetImage ( IcoDecoder . Instance ) ;
188
+
189
+ image . DebugSaveMultiFrame ( provider , extension : "png" ) ;
190
+
191
+ // TODO: Assert metadata, frame count, etc
192
+ }
193
+
184
194
[ Theory ]
185
195
[ WithFile ( MixedBmpPngA , PixelTypes . Rgba32 ) ]
186
196
[ WithFile ( MixedBmpPngB , PixelTypes . Rgba32 ) ]
You can’t perform that action at this time.
0 commit comments