Ejemplo n.º 1
0
        public void TestChangeSetting()
        {
            LocalizeManager localizeFacade = new LocalizeManager(defaultJPStub);

            localizeFacade.ChangeSetting(EnumLaungageSetting.EN);
            Assert.AreEqual(EnumLaungageSetting.EN, localizeFacade.GetNowSetting());
            localizeFacade.ChangeSetting(EnumLaungageSetting.JP);
            Assert.AreEqual(EnumLaungageSetting.JP, localizeFacade.GetNowSetting());
        }
Ejemplo n.º 2
0
        public void TestGetText()
        {
            LocalizeManager localizeFacade = new LocalizeManager(defaultJPStub);

            Assert.AreEqual(localizeFacade.GetText((int)EnumLocalizeName.ID_1), "ID 1 JP");
            Assert.AreEqual(localizeFacade.GetText((int)EnumLocalizeName.ID_2), "ID 2 JP");
            localizeFacade.ChangeSetting(EnumLaungageSetting.EN);
            Assert.AreEqual(localizeFacade.GetText((int)EnumLocalizeName.ID_1), "ID 1 EN");
            Assert.AreEqual(localizeFacade.GetText((int)EnumLocalizeName.ID_2), "ID 2 EN");
        }