Skip to content

Repository files navigation

Verify.ParametersHashing

DiscussionsBuild statusNuGet Status

Extends Verify to allow hashing of parameters to mitigate long file names.

See Milestones for release notes.

Sponsors

Entity Framework Extensions

Entity Framework Extensions is a major sponsor and is proud to contribute to the development this project.

Entity Framework Extensions

Developed using JetBrains IDEs

JetBrains logo.

NuGet

Usage

Parameters can be hashed as an alternative to being stringified. This is useful when the parameters are large and could potentially generate file names that exceed allowances of the OS.

XxHash64 is used to perform the hash.

Hashing parameters is achieved by using HashParameters():

Instance

[TestCase("Value1")][TestCase("Value2")]publicTaskHashParametersUsage(stringarg){varsettings=newVerifySettings();settings.HashParameters();returnVerify(arg,settings);}

snippet source | anchor

Fluent

[TestCase("Value1")][TestCase("Value2")]publicTaskHashParametersUsageFluent(stringarg)=>Verify(arg).HashParameters();

snippet source | anchor

Icon

Hash designed by Hide Maru from The Noun Project.

About

Extends Verify to allow hashing of parameters to mitigate long file names

Resources

Code of conduct

Stars

2 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages