dotnet/winforms

Random failures in InputLanguage_FromCulture_SupplementalInputLanguages_Expected

Open

#13,274 opened on Apr 9, 2025

View on GitHub
 (2 comments) (0 reactions) (1 assignee)C# (922 forks)batch import
help wantedtest-bug

Repository metrics

Stars
 (4,100 stars)
PR merge metrics
 (Avg merge 14d 22h) (56 merged PRs in 30d)

Description

Test

InputLanguage_FromCulture_SupplementalInputLanguages_Expected

Issue description

Run test InputLanguage_FromCulture_SupplementalInputLanguages_Expected on my local machine, one or two or even three test scenarios ​​will fail because language returns null after executing the following code

InstallUserLanguage(languageTag);
CultureInfo culture = new(languageTag);
InputLanguage language = InputLanguage.FromCulture(culture);

But running them individually all pass and this problem does not occur in the pipeline run. AfterChange

Contributor guide