-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Property.check to work with Property<_> and not just Property<unit> #429
Comments
With #431 in mind, the consideration is that these properties may become non-recheckable... |
I agree in principle, but I think there is a good reason not to do this. We currently have functions like After I remove functions like If I implement the suggestion proposed in this issue as well as remove functions like Therefore, I am willing to make the suggested change, but I want to wait until I think nobody is using any of the functions like |
I am not sure if this is assertable. Most of .NET code is in private repositories, and most of the devs do not follow issues on GH but instead just use nuget packages. Maybe leaving these functions but marking them with |
But I truly don't have any suggestions on how to fix the |
If almost all downloads are for a version without
I am fine with that. Is this what you prefer? I will go with your preference on this.
...the property/behavior of efficient rechecking (i.e. when rechecking, the non-generation code test code is only executed on the shrunken input? I will double check if there is anything that can be done about that. I willing to require the use of |
Yes, you can remove I would like it to be this way, but I am not sure why it is there in the first place... |
yes, I would prefer a breaking change (with a message showing how to fix it, which |
This is no longer true; these functions will stay. See #419 (comment) for more information. |
Fluent assertion libraries like FluentAssertions generally make the test implementation return a non-
unit
value.Property.check
and similar requireProperty<unit>
, 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 whyProperty.check
and similar could not just ignore the generic value and therefore work with anyProperty<_>
.The text was updated successfully, but these errors were encountered: