Extends Verify to allow comparison of images via ImageHash.
See Milestones for release notes.
Contains comparers for png, jpg, and bmp.
Entity Framework Extensions is a major sponsor and is proud to contribute to the development this project.
[ModuleInitializer]publicstaticvoidInit()=>VerifyImageHash.Initialize();The following will use ImageHash to compare the images instead of the default DifferenceHash algorithm.
[Test]publicTaskCompareImage()=>VerifyFile("sample.jpg");All comparers can be registered:
VerifyImageHash.RegisterComparers();
[Test]publicTaskCompareImageThreshold()=>VerifyFile("sample.jpg").UseImageHash(threshold:85);[Test]publicTaskCompareImageAlgorithm()=>VerifyFile("sample.jpg").UseImageHash(algorithm:newPerceptualHash());Swirl designed by Philipp Petzka from The Noun Project.

