Example #1
0
        public void Should_not_Load_When_Resource_Localization_not_Exists()
        {
            CultureInfo.CurrentCulture = new CultureInfo("fr-CA");
            var jsonResourceProvider = new JsonResourcesProvider(ResourceName);

            var actual = jsonResourceProvider.LoadResourcesForCulture(CultureInfo.CurrentCulture);

            Assert.False(actual);
        }
Example #2
0
        public void Should_Load_When_Resource_Exists()
        {
            CultureInfo.CurrentCulture = new CultureInfo(EnUs);
            var jsonResourceProvider = new JsonResourcesProvider(ResourceName);

            var actual = jsonResourceProvider.LoadResourcesForCulture(CultureInfo.CurrentCulture);

            Assert.True(actual);
        }