示例#1
0
        public void TextRedefinition()
        {
            lp = LocaleProvider.Initialize("Locales/Redefinitions");
            lp.SetActiveLanguage("cs-cz", true);

            Assert.That(lp.Get(1) == "Zpět");
            Assert.That(lp.Get(2) == "Zpět");

            lp.SetActiveLanguage("en-us");

            Assert.That(lp.Get(1) == "Back");
            Assert.That(lp.Get(2) == "Abort");
        }
示例#2
0
 public void GetLocalizationMissing()
 {
     Assert.That(lp.Get(-9999) == "MISSING -9999");
 }