コード例 #1
0
 public void DoesNotThrowOnMissingResource()
 {
     ResourceSetMessageSource messageSource = new ResourceSetMessageSource();
     messageSource.ResourceManagers.Add(new ResourceManager("do not exist", GetType().Assembly));
     ResourceSetLocalizer localizer = new ResourceSetLocalizer();
     localizer.ApplyResources(new Inventor(), messageSource, CultureInfo.InvariantCulture);
 }
コード例 #2
0
        public void DoesNotThrowOnMissingResource()
        {
            ResourceSetMessageSource messageSource = new ResourceSetMessageSource();

            messageSource.ResourceManagers.Add(new ResourceManager("do not exist", GetType().Assembly));
            ResourceSetLocalizer localizer = new ResourceSetLocalizer();

            localizer.ApplyResources(new Inventor(), messageSource, CultureInfo.InvariantCulture);
        }