Skip to content
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

fix tests #8672

Merged
merged 1 commit into from
Aug 4, 2022
Merged

fix tests #8672

merged 1 commit into from
Aug 4, 2022

Conversation

StephaneDelcroix
Copy link
Contributor

Description of Change

Somehow this version of VSMac doesn't run tests in the InvariantCulture, so the test was failing on the text<->double conversions

@@ -1851,6 +1851,8 @@ public void SetBindingContextAfterInnerBindingsAndContextBinding()
[Test]
public void Convert()
{
System.Threading.Thread.CurrentThread.CurrentCulture = System.Threading.Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hold on - is this a bug in the test, or a bug in the product? I think there are many places in Xamarin.Forms and MAUI where the product code is using CurrentCulture to parse/format strings, where it should be using Invariant/Ordinal. Not sure if that's the case here.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to hold on here. it's an issue in the test. The next test in that file is named ConvertIsCultureAware and is testing this, precisely

@Eilon Eilon added the area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions label Jul 12, 2022
@jfversluis jfversluis merged commit 4508838 into net6.0 Aug 4, 2022
@jfversluis jfversluis deleted the fix_culture_tests branch August 4, 2022 09:12
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2023
@samhouts samhouts added fixed-in-6.0.540 Look for this fix in 6.0.540 SR5! fixed-in-7.0.0-rc.1.6683 labels Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-infrastructure CI, Maestro / Coherency, upstream dependencies/versions fixed-in-6.0.540 Look for this fix in 6.0.540 SR5! fixed-in-7.0.0-rc.1.6683 t/housekeeping ♻︎
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants