public void WithGlobalErrorhandling(TranslationErrorsSource.ErrorData data)
            {
                if (!Translator.ContainsCulture(data.Culture))
                {
                    Assert.Pass("nop");
                }

                Translator.CurrentCulture = data.Culture;
                Translator.ErrorHandling = data.ErrorHandling;
                var actual = Translator.Translate(Properties.Resources.ResourceManager, data.Key);
                Assert.AreEqual(data.ExpectedTranslation, actual);
            }
 public void WithExplicitErrorhandlingAndCulture(TranslationErrorsSource.ErrorData data)
 {
     Translator.CurrentCulture = null;
     Translator.ErrorHandling = ErrorHandling.Throw;
     var actual = Translator.Translate(Properties.Resources.ResourceManager, 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.CurrentCulture = data.Culture;
            Translator.ErrorHandling = ErrorHandling.Throw;
            var actual = Translator<Properties.Resources>.Translate(data.Key, data.ErrorHandling);
            Assert.AreEqual(data.ExpectedTranslation, actual);
        }