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 unit tests culture #13016

Merged
merged 1 commit into from
Sep 25, 2023
Merged

Fix unit tests culture #13016

merged 1 commit into from
Sep 25, 2023

Conversation

MrJul
Copy link
Member

@MrJul MrJul commented Sep 25, 2023

What does the pull request do?

This PR fixes some tests that are now failing after #12876 if the current culture doesn't use a dot as a decimal point.

These tests already had a InvariantCultureFixture, which likely only work in the past with the .NET Framework (which didn't flow the current culture through the execution context, IIRC). This is now replaced by an InvariantCultureAttribute, setting the culture right before a test is run.

@avaloniaui-team
Copy link
Contributor

You can test this PR using the following package version. 11.0.999-cibuild0039972-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added this pull request to the merge queue Sep 25, 2023
Merged via the queue into AvaloniaUI:master with commit e6c1670 Sep 25, 2023
6 checks passed
@MrJul MrJul deleted the fix/tests-culture branch September 27, 2023 13:06
@grokys grokys added the backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch label Oct 2, 2023
grokys pushed a commit that referenced this pull request Oct 2, 2023
@grokys grokys added backported-11.0.x and removed backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch labels Oct 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants