Exemplo 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());
        }
Exemplo 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");
        }
Exemplo n.º 3
0
        public void TestDefSetting()
        {
            LocalizeManager localizeFacade = new LocalizeManager(defaultJPStub);

            Assert.AreEqual(EnumLaungageSetting.JP, localizeFacade.GetNowSetting());

            LocalizeManager localizeFacade2 = new LocalizeManager(defaultENStub);

            Assert.AreEqual(EnumLaungageSetting.EN, localizeFacade2.GetNowSetting());
        }