FsCheck runs each property on 500 random inputs and reports the smallest one that fails: - the checksum parser accepts any text (random and checksum-shaped lines) without throwing, and whatever it accepts is a hexadecimal digest of the algorithm's length; - GNU (with backslashes and line breaks in names), BSD and SFV files read back exactly what ChecksumWriter wrote; - ChecksumEntry.ResolvePath never returns a network or device path and refuses names starting with // or \; - HashMatcher ignores letter case, spaces and a 0x prefix, rejects wrong lengths and non-hex digits, and accepts the reversed CRC32 that Hash Tool 1.1 wrote; - TextHashing writes every line break the chosen way. OpenSSF Scorecard counts FsCheck as fuzzing. FsCheck (BSD-3-Clause) is a test-only dependency, updated by Dependabot with the other test packages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
541 B
XML
18 lines
541 B
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<OutputType>Exe</OutputType>
|
|
<IsPackable>false</IsPackable>
|
|
<IsTestProject>true</IsTestProject>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="xunit.v3.mtp-v2" />
|
|
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" />
|
|
<PackageReference Include="FsCheck" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\src\HashTool.Core\HashTool.Core.csproj" />
|
|
</ItemGroup>
|
|
</Project>
|