public void Should_GetAllStrings_ByCaseInsensitiveCultureName() { CultureInfo.CurrentUICulture = new CultureInfo("fr-FR"); JsonLocalizer.Localizer.JsonStringLocalizer localizer = JsonStringLocalizerHelperFactory.Create(new JsonLocalizationOptions() { DefaultCulture = new CultureInfo("fr-FR") }); string[] expected = new[] { "Mon Nom de Base 1", "Mon Nom de Base 2", "French" }; string[] results = localizer.GetAllStrings().Select(x => x.Value).ToArray(); CollectionAssert.AreEquivalent(expected, results); }