public void GetSupportedCulturesTest() { var cultures = new AppSupportedCultures(); Assert.Equal(6, cultures.GetSupportedCultures().Length); Assert.Equal("en", cultures.GetSupportedCultures()[0]); Assert.Equal("en-GB", cultures.GetSupportedCultures()[1]); Assert.Equal("de-CH", cultures.GetSupportedCultures()[5]); }
public void GetCultureInfoTest() { var cultures = new AppSupportedCultures(); Assert.Equal(6, cultures.GetSupportedCultures().Length); Assert.Equal("en", cultures.GetCultureInfo("en").Name); Assert.Equal("en-GB", cultures.GetCultureInfo("en-GB").Name); Assert.Equal("de-CH", cultures.GetCultureInfo("de-CH").Name); Assert.Null(cultures.GetCultureInfo("xxx")); }