public void ApplicationSystemLanguageIsUsedWhenCulturInfoIsNotAvailable()
        {
            var selector = new SystemLocaleSelectorFixture {
                ApplicationSystemLanguage = SystemLanguage.Japanese, SystemCulture = new CultureInfo("fr")
            };
            var selectedLocale = selector.GetStartupLocale(m_LocaleProvider);

            Assert.AreEqual(m_Japanese, selectedLocale, "Expected 'ja' to be selected but it was not.");
        }
        public void NoLocaleIsSelectedIfCulrtureInfoAndApplicationSystemLangaugeAreNotAvailable()
        {
            var selector = new SystemLocaleSelectorFixture {
                ApplicationSystemLanguage = SystemLanguage.Swedish, SystemCulture = new CultureInfo("fr")
            };
            var selectedLocale = selector.GetStartupLocale(m_LocaleProvider);

            Assert.IsNull(selectedLocale, "Expected no locale to be returned when no suitable locales are available.");
        }
        public void CultureInfoIsUsedBeforeApplicationSystemLanguage()
        {
            var selector = new SystemLocaleSelectorFixture {
                ApplicationSystemLanguage = SystemLanguage.English, SystemCulture = new CultureInfo("en-GB")
            };
            var selectedLocale = selector.GetStartupLocale(m_LocaleProvider);

            Assert.AreEqual(m_EnglishGB, selectedLocale, "Expected 'en-GB' to be selected but it was not.");
        }