Skip to content

Add UseCultureAttribute to help with culture-dependent unit tests#24398

Merged
sharwell merged 3 commits intodotnet:dev15.6.xfrom
sharwell:use-culture-attribute
Jan 24, 2018
Merged

Add UseCultureAttribute to help with culture-dependent unit tests#24398
sharwell merged 3 commits intodotnet:dev15.6.xfrom
sharwell:use-culture-attribute

Conversation

@sharwell
Copy link
Copy Markdown
Contributor

Test only change related to #23837.

{
#if NET461 || NETCOREAPP20
_culture = new Lazy<CultureInfo>(() => new CultureInfo(culture, false));
_uiCulture = new Lazy<CultureInfo>(() => new CultureInfo(uiCulture, false));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Consider passing false by name here. Reviewer has no idea what this means 😄

@sharwell sharwell merged commit 29c45e8 into dotnet:dev15.6.x Jan 24, 2018
@sharwell sharwell deleted the use-culture-attribute branch January 24, 2018 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants