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()); }
public void TestDefaultLanguage() { ConfigTools.InitConf("Config.xml"); CultureInfo ci = ConfigTools.GetCurrentLanguage(); Assert.AreEqual(ci, CultureInfo.CurrentCulture); }