Browse Source

Pass the Test

Signed-off-by: 舰队的偶像-岛风酱! <frg2089@outlook.com>
pull/2579/head
舰队的偶像-岛风酱! 2 years ago
parent
commit
9a7727b314
No known key found for this signature in database GPG Key ID: D6C8469AF07B3073
  1. 12
      tests/ImageSharp.Tests/Formats/Icon/Ico/IcoDecoderTests.cs

12
tests/ImageSharp.Tests/Formats/Icon/Ico/IcoDecoderTests.cs

@ -168,7 +168,6 @@ public class IcoDecoderTests
[WithFile(InvalidAll, PixelTypes.Rgba32)]
[WithFile(InvalidBpp, PixelTypes.Rgba32)]
[WithFile(InvalidCompression, PixelTypes.Rgba32)]
[WithFile(InvalidPng, PixelTypes.Rgba32)]
[WithFile(InvalidRLE4, PixelTypes.Rgba32)]
[WithFile(InvalidRLE8, PixelTypes.Rgba32)]
public void InvalidTest(TestImageProvider<Rgba32> provider)
@ -181,6 +180,17 @@ public class IcoDecoderTests
// TODO: Assert metadata, frame count, etc
});
[Theory]
[WithFile(InvalidPng, PixelTypes.Rgba32)]
public void InvalidPngTest(TestImageProvider<Rgba32> provider)
{
using Image<Rgba32> image = provider.GetImage(IcoDecoder.Instance);
image.DebugSaveMultiFrame(provider, extension: "png");
// TODO: Assert metadata, frame count, etc
}
[Theory]
[WithFile(MixedBmpPngA, PixelTypes.Rgba32)]
[WithFile(MixedBmpPngB, PixelTypes.Rgba32)]

Loading…
Cancel
Save