Esempio n. 1
0
        public void ChangeCultureToGbAndVerify()
        {
            DefaultUICulture.Set(new CultureInfo("en-gb"));

            Assert.AreEqual(new CultureInfo("en-gb").LCID, DefaultUICulture.LCID);
            Assert.IsTrue(DefaultUICulture.Is(new CultureInfo("en")));
            Assert.IsTrue(DefaultUICulture.Is(new CultureInfo("en-gb")));
            Assert.IsFalse(DefaultUICulture.IsActive);
        }
Esempio n. 2
0
        public void ChangeCultureToSwedishAndVerify()
        {
            DefaultUICulture.Set(new CultureInfo(1053));

            Assert.AreEqual(1053, DefaultUICulture.LCID);
            Assert.IsFalse(DefaultUICulture.Is(new CultureInfo("en")));
            Assert.IsTrue(DefaultUICulture.Is(new CultureInfo(1053)));
            Assert.IsFalse(DefaultUICulture.IsActive);
            Assert.IsFalse(DefaultUICulture.IsEnglish);
        }