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