dotnet/winforms

Random failures in InputLanguage_FromCulture_SupplementalInputLanguages_Expected

Open

#13,274 opened on 2025年4月9日

GitHub で見る
 (2 comments) (0 reactions) (1 assignee)C# (922 forks)batch import
help wantedtest-bug

Repository metrics

Stars
 (4,100 stars)
PR merge metrics
 (平均マージ 14d 22h) (30d で 56 merged PRs)

説明

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

コントリビューターガイド