-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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 for Ctor_Brush_Width test on Non-English Windows #60502
Conversation
Tagging subscribers to this area: @safern, @tarekgh Issue DetailsFix for #60480 issue
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
yield return new object[] { new SolidBrush(Color.Red), 0, PenType.SolidColor }; | ||
yield return new object[] { new SolidBrush(Color.Red), -1, PenType.SolidColor }; | ||
// Issue on Non-English Windows with brush width < 1. See https://github.com/dotnet/runtime/issues/60480 | ||
if (Environment.OSVersion.Platform != PlatformID.Win32NT || CultureInfo.InstalledUICulture.TwoLetterISOLanguageName == "en") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: we usually use, !PlatformDetection.IsWindows
to detect if running or not on windows on our tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I change Windows OS checking to OperatingSystem.IsWindows()
or not?
Fix for #60480 issue