From 6fb16cd44a9d20860bd1ebfcad5ba3131f1fbcbb Mon Sep 17 00:00:00 2001 From: Brian Popow Date: Thu, 23 Apr 2020 18:30:00 +0200 Subject: [PATCH] Fix chunk type unit tests --- tests/ImageSharp.Tests/Formats/Png/PngChunkTypeTests.cs | 2 +- tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ImageSharp.Tests/Formats/Png/PngChunkTypeTests.cs b/tests/ImageSharp.Tests/Formats/Png/PngChunkTypeTests.cs index f3984ac82..3a207722b 100644 --- a/tests/ImageSharp.Tests/Formats/Png/PngChunkTypeTests.cs +++ b/tests/ImageSharp.Tests/Formats/Png/PngChunkTypeTests.cs @@ -32,7 +32,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Png Assert.Equal(PngChunkType.SignificantBits, GetType("sBIT")); Assert.Equal(PngChunkType.Histogram, GetType("hIST")); Assert.Equal(PngChunkType.SuggestedPalette, GetType("sPLT")); - Assert.Equal(PngChunkType.MalformedApple, GetType("CgBI")); + Assert.Equal(PngChunkType.ProprietaryApple, GetType("CgBI")); } private static PngChunkType GetType(string text) diff --git a/tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs b/tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs index c4b5d0b4b..6eb6e93db 100644 --- a/tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs +++ b/tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs @@ -387,7 +387,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Png } }); Assert.NotNull(ex); - Assert.Contains("Malformed Apple PNG detected!", ex.Message); + Assert.Contains("Proprietary Apple PNG detected!", ex.Message); } [Theory]