Browse Source

Fix chunk type unit tests

pull/1574/head
Brian Popow 6 years ago
parent
commit
b92c1fea8a
  1. 2
      tests/ImageSharp.Tests/Formats/Png/PngChunkTypeTests.cs
  2. 2
      tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs

2
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.SignificantBits, GetType("sBIT"));
Assert.Equal(PngChunkType.Histogram, GetType("hIST")); Assert.Equal(PngChunkType.Histogram, GetType("hIST"));
Assert.Equal(PngChunkType.SuggestedPalette, GetType("sPLT")); Assert.Equal(PngChunkType.SuggestedPalette, GetType("sPLT"));
Assert.Equal(PngChunkType.MalformedApple, GetType("CgBI")); Assert.Equal(PngChunkType.ProprietaryApple, GetType("CgBI"));
} }
private static PngChunkType GetType(string text) private static PngChunkType GetType(string text)

2
tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs

@ -387,7 +387,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Png
} }
}); });
Assert.NotNull(ex); Assert.NotNull(ex);
Assert.Contains("Malformed Apple PNG detected!", ex.Message); Assert.Contains("Proprietary Apple PNG detected!", ex.Message);
} }
[Theory] [Theory]

Loading…
Cancel
Save