Exemplo n.º 1
0
        public void Should_return_Null_When_Get_Called_And_Key_Not_Exists()
        {
            CultureInfo.CurrentCulture = new CultureInfo(EnUs);
            var jsonResourceProvider = new JsonResourcesProvider(ResourceName);

            var res = jsonResourceProvider.Get("NotExistsInEn", CultureInfo.CurrentCulture);

            Assert.Null(res);
        }
Exemplo n.º 2
0
        public void Should_Get_String_When_Get_Called_And_Key_Exists(string value, string culture)
        {
            var jsonResourceProvider = new JsonResourcesProvider(ResourceName);

            var res = jsonResourceProvider.Get("Hello", new CultureInfo(culture));

            Assert.NotNull(res);
            Assert.Equal(value, res);
        }