public void TestBasicResourceManagerLocalizationCultureResourceNotFound()
 {
     Thread.CurrentThread.CurrentUICulture = new CultureInfo("Ru-ru");
     var ra = new RequiredAttribute("Test", "DotNetMarche.Validator.Tests.ResourcesFiles.TestRes, DotNetMarche.Validator.Tests", null);
     String msg = ErrorMessageFormatter.instance.FormatMessage(ra.CreateErrorMessage(),
                                                                                  new SingleValidationResult(false, "", "", "property"));
     Assert.AreEqual("This is a test message", msg, "Error message get no localized");
 }
 public void TestBasicResourceManagerExplicitLocalization()
 {
     var ra = new RequiredAttribute("Test", "DotNetMarche.Validator.Tests.ResourcesFiles.TestRes, DotNetMarche.Validator.Tests", null);
     String msg = ErrorMessageFormatter.instance.FormatMessage(ra.CreateErrorMessage(),
                                                                                   new SingleValidationResult(false, "", "", "property"),
                                                               new CultureInfo("IT-it"));
     Assert.AreEqual("Questa è una stringa di test", msg, "Error message get no localized");
 }