public void WithExplicitErrorHandlingAndCulture(TranslationErrorsSource.ErrorData data)
        {
            Translator.Culture       = null;
            Translator.ErrorHandling = ErrorHandling.Throw;
            var actual = Translator <Properties.Resources> .Translate(data.Key !, data.Culture, data.ErrorHandling);

            Assert.AreEqual(data.ExpectedTranslation, actual);
        }
        public void WithExplicitErrorHandling(TranslationErrorsSource.ErrorData data)
        {
            if (!Translator.ContainsCulture(data.Culture))
            {
                Assert.Pass("nop");
            }

            Translator.Culture       = data.Culture;
            Translator.ErrorHandling = ErrorHandling.Throw;
            var actual = Translator <Properties.Resources> .Translate(data.Key !, data.ErrorHandling);

            Assert.AreEqual(data.ExpectedTranslation, actual);
        }
            public static void WithGlobalErrorHandling(TranslationErrorsSource.ErrorData data)
            {
                if (!Translator.ContainsCulture(data.Culture))
                {
                    Assert.Pass("nop");
                }

                Translator.Culture       = data.Culture;
                Translator.ErrorHandling = data.ErrorHandling;
                var actual = Translator.Translate(Properties.Resources.ResourceManager, data.Key !);

                Assert.AreEqual(data.ExpectedTranslation, actual);
            }