Skip to content

Commit 31b591a

Browse files
Update PngEncoderTests.cs
1 parent fa434dd commit 31b591a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,8 @@ public void Encode_PreserveTrns(string imagePath, PngBitDepth pngBitDepth, PngCo
458458
PngMetadata outMeta = output.Metadata.GetPngMetadata();
459459
Assert.True(outMeta.TransparentColor.HasValue);
460460
Assert.Equal(inMeta.TransparentColor, outMeta.TransparentColor);
461+
Assert.Equal(pngBitDepth, outMeta.BitDepth);
462+
Assert.Equal(pngColorType, outMeta.ColorType);
461463
}
462464

463465
[Theory]

0 commit comments

Comments
 (0)