Skip to content

Commit

Permalink
Added unit test that checks if pinging a dng image sets the metadata (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Jul 10, 2024
1 parent f8fb8ab commit b31fe9f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/Magick.NET.Tests/Coders/TheDngCoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,13 @@ public void ShouldReadTheThumbnail()

Assert.Equal("b68a4fcd77c02b98b22707db20bdbdd55a310fc0b96e91d174c0d7f1139033bf", thumbnail.Signature);
}

[Fact]
public void ShouldReadMetadatawhenPingingImage()
{
using var image = new MagickImage();
image.Ping(Files.Coders.RawKodakDC50KDC);

Assert.Equal("DC50", image.GetAttribute("dng:camera.model.name"));
}
}

0 comments on commit b31fe9f

Please sign in to comment.