hedgehogqa / hedgehogqa/fsharp-hedgehog

Allow Property.check to work with Property<_> and not just Property<unit>

Open
#429 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
F#
Stars
284
Forks
31
PR merge metrics
No merged PRs in 30d

Description

Fluent assertion libraries like FluentAssertions generally make the test implementation return a non-`unit` value. `Property.check` and similar require `Property`, which means I have to explicitly `|> ignore` the result of the fluent assertion chain. This explicit ignoring is not necessary if not using properties (for example, xUnit by itself allows test functions to return arbitrary values), and I can't see a good reason why `Property.check` and similar could not just ignore the generic value and therefore work with any `Property<_>`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.