We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Because ComparableTypeAssertions doesn't contain BeOneOf, the following code doesn't work:
ComparableTypeAssertions
BeOneOf
float testFloat = 12f; var testTuple = (1, 2); testFloat.Should().BeOneOf(12f, 13f); // Works testTuple.Should().BeOneOf((1, 2), (1, 3)); // Doesn't work
I don't see any technical reason why the latter shouldn't work, so how about adding BeOneOf to ComparableTypeAssertions?
The text was updated successfully, but these errors were encountered:
Indeed. We would welcome a PR.
Sorry, something went wrong.
IComparable
@dennisdoomen PR submitted.
Successfully merging a pull request may close this issue.
Because
ComparableTypeAssertions
doesn't containBeOneOf
, the following code doesn't work:I don't see any technical reason why the latter shouldn't work, so how about adding
BeOneOf
toComparableTypeAssertions
?The text was updated successfully, but these errors were encountered: