예제 #1
0
        public void TestDefaultLanguageChange()
        {
            CultureInfo ci = CultureInfo.CurrentCulture.TwoLetterISOLanguageName.ToUpper() == "FR" ? CultureInfo.GetCultureInfo("en") : CultureInfo.GetCultureInfo("de");

            ConfigTools.InitConf("Config.xml", ci);
            Assert.AreEqual(ci, ConfigTools.GetCurrentLanguage());
        }
예제 #2
0
        public void TestDefaultLanguage()
        {
            ConfigTools.InitConf("Config.xml");
            CultureInfo ci = ConfigTools.GetCurrentLanguage();

            Assert.AreEqual(ci, CultureInfo.CurrentCulture);
        }