-
Notifications
You must be signed in to change notification settings - Fork 179
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
Add ArgumentConstraintManagerExtensions.Contains overload that takes a StringComparison #1681
Comments
We could also emulate it on platforms that don't. Something like this maybe? |
I think we have a bug in the existing The code is like this: #if FEATURE_STRING_CONTAINS_COMPARISONTYPE
return manager.NullCheckedMatches(x => x.Contains(value, StringComparison.CurrentCulture), x => x.Write("string that contains ").WriteArgumentValue(value));
#else
return manager.NullCheckedMatches(x => x.Contains(value), x => x.Write("string that contains ").WriteArgumentValue(value));
#endif But the comparison used by the This issue was introduced in https://github.com/FakeItEasy/FakeItEasy/pull/1666/files#diff-3f9aad371d3919486c2640596c21b7dcR80 |
Oh, interesting. And good point. Yeah, we should probably fix that. Better to revert to the ordinal behaviour, I think. And maybe this increases the priority of #1681? |
Yes (in fact, this is #1681, I didn't open a new issue). I'm working on it |
Oops, I confused the PR with the issue... |
This change has been released as part of FakeItEasy 6.0.0. |
We should probably add overloads for |
Currently we force the comparison to use the current culture.
The text was updated successfully, but these errors were encountered: