Skip to content

Commit 128d6f9

Browse files
Update IcoDecoderTests.cs
1 parent 3f05cbe commit 128d6f9

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,12 +204,19 @@ public void Bpp8Test(TestImageProvider<Rgba32> provider)
204204
}
205205

206206
[Theory]
207-
[WithFile(InvalidAll, PixelTypes.Rgba32)]
208207
[WithFile(InvalidBpp, PixelTypes.Rgba32)]
208+
public void InvalidThrows_InvalidImageContentException(TestImageProvider<Rgba32> provider)
209+
=> Assert.Throws<InvalidImageContentException>(() =>
210+
{
211+
using Image<Rgba32> image = provider.GetImage(IcoDecoder.Instance);
212+
});
213+
214+
[Theory]
215+
[WithFile(InvalidAll, PixelTypes.Rgba32)]
209216
[WithFile(InvalidCompression, PixelTypes.Rgba32)]
210217
[WithFile(InvalidRLE4, PixelTypes.Rgba32)]
211218
[WithFile(InvalidRLE8, PixelTypes.Rgba32)]
212-
public void InvalidTest(TestImageProvider<Rgba32> provider)
219+
public void InvalidThows_NotSupportedException(TestImageProvider<Rgba32> provider)
213220
=> Assert.Throws<NotSupportedException>(() =>
214221
{
215222
using Image<Rgba32> image = provider.GetImage(IcoDecoder.Instance);

0 commit comments

Comments
 (0)