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 @@ -168,7 +168,6 @@ public void Bpp8Test(TestImageProvider<Rgba32> provider)
168168 [ WithFile ( InvalidAll , PixelTypes . Rgba32 ) ]
169169 [ WithFile ( InvalidBpp , PixelTypes . Rgba32 ) ]
170170 [ WithFile ( InvalidCompression , PixelTypes . Rgba32 ) ]
171- [ WithFile ( InvalidPng , PixelTypes . Rgba32 ) ]
172171 [ WithFile ( InvalidRLE4 , PixelTypes . Rgba32 ) ]
173172 [ WithFile ( InvalidRLE8 , PixelTypes . Rgba32 ) ]
174173 public void InvalidTest ( TestImageProvider < Rgba32 > provider )
@@ -181,6 +180,17 @@ public void InvalidTest(TestImageProvider<Rgba32> provider)
181180 // TODO: Assert metadata, frame count, etc
182181 } ) ;
183182
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+
184194 [ Theory ]
185195 [ WithFile ( MixedBmpPngA , PixelTypes . Rgba32 ) ]
186196 [ WithFile ( MixedBmpPngB , PixelTypes . Rgba32 ) ]
You can’t perform that action at this time.
0 commit comments