Extends Verify to allow hashing of parameters to mitigate long file names.
See Milestones for release notes.
Entity Framework Extensions is a major sponsor and is proud to contribute to the development this project.
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()
:
[TestCase("Value1")]
[TestCase("Value2")]
public Task HashParametersUsage(string arg)
{
var settings = new VerifySettings();
settings.HashParameters();
return Verify(arg, settings);
}
[TestCase("Value1")]
[TestCase("Value2")]
public Task HashParametersUsageFluent(string arg) =>
Verify(arg)
.HashParameters();
Hash designed by Hide Maru from The Noun Project.