예제 #1
0
 [Test] public void TearDownRestoresCulture() {
     var culture = new Culture {Name = "af-ZA"};
     culture.SetUp();
     culture.TearDown();
     Assert.AreEqual("en-US", Thread.CurrentThread.CurrentCulture.Name);
 }
예제 #2
0
 [Test] public void InvariantCultureIsSet() {
     var culture = new Culture {Name = "invariant"};
     culture.SetUp();
     Assert.AreEqual(CultureInfo.InvariantCulture, Thread.CurrentThread.CurrentCulture);
 }
예제 #3
0
 [Test] public void SetUpSetsCulture() {
     var culture = new Culture {Name = "af-ZA"};
     culture.SetUp();
     Assert.AreEqual("af-ZA", Thread.CurrentThread.CurrentCulture.Name);
 }