-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
ParameterExtractor of cultureInfo issue #2350
Comments
Yep, totally understood, and you're absolutely right - this should be invariant. Thanks for reporting. Will happily take a PR, or I will commit to taking this at the start of the week. |
This changes the regex to use RegexOptions.CultureInvariant and adds an easy way to do tests like this in the future with `[Fact, TestCulture("tr-TR")]` for example, which will set and restore the culture for a specific test.
This gave me an idea on testing I wanted to poke on (culture via attribute for test-scoping), turns out there is some prior art and it works pretty well I think, made a PR here: #2351 |
I couldn't create PR because I had urgent work at the weekend. thanks, @NickCraver. |
There is a CultureInfo problem in the process of finding the "@blabla" parameters defined in the script text with regex.
For example
A parameter named "@testIId" cannot be found in script text when CulturerInfo is "tr-TR". The character "I" has always been a problem for this Culture :) RegexOptions.CultureInvariant can be added as a solution.
Old
New
The text was updated successfully, but these errors were encountered: