public void SetCulture_ChangesCulture()
        {
            TextContainer container = new TextContainer(supportedCulturesInvariant, invariantCultureTexts);

            container.SetCulture(CultureInfo.InvariantCulture);

            Assert.AreEqual(CultureInfo.InvariantCulture, container.CurrentCulture);
        }
        private void CheckAgainstSampleFile(TextContainer result)
        {
            Assert.AreEqual("test", result.Name);

            string keyText = "text 1";

            result.SetCulture(inv);

            Assert.AreEqual("This is text 1", result.GetText(keyText));

            result.SetCulture(en);

            Assert.AreEqual("This is text 1", result.GetText(keyText));

            result.SetCulture(fr);

            Assert.AreEqual("Ceci est texte 1", result.GetText(keyText));
        }
        public void SetCulture_UnSupportedCulture_ThrowsKeyNotFoundException()
        {
            TextContainer container = new TextContainer(supportedCulturesInvariant, invariantCultureTexts);

            container.SetCulture(CultureInfo.GetCultureInfo("fr"));
        }
        public void SetCulture_NullArgument_ThrowsArgumentNullException()
        {
            TextContainer container = new TextContainer();

            container.SetCulture(Deliberate.Null as CultureInfo);
        }