Skip to content

Extends Verify to allow comparison of images via ImageHash.

License

Notifications You must be signed in to change notification settings

VerifyTests/Verify.ImageHash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Verify.ImageHash

Discussions Build status NuGet Status

Extends Verify to allow comparison of images via ImageHash.

See Milestones for release notes.

Contains comparers for png, jpg, and bmp.

NuGet package

https://nuget.org/packages/Verify.ImageHash/

Usage

[ModuleInitializer]
public static void Init() =>
    VerifyImageHash.Initialize();

snippet source | anchor

Image Comparers

The following will use ImageHash to compare the images instead of the default DifferenceHash algorithm.

[Test]
public Task CompareImage() =>
    VerifyFile("sample.jpg");

snippet source | anchor

Register all comparers

All comparers can be registered:

VerifyImageHash.RegisterComparers();

Icon

Swirl designed by Philipp Petzka from The Noun Project.

About

Extends Verify to allow comparison of images via ImageHash.

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Languages