Пример #1
0
        public void ResourceManagerHelpersTests_ValidateCulture_SendAvailableCulturesListNullArgument_ExpectException()
        {
            //arrange
            string culture = "ua";
            var resHelpers = new ResourceManagerHelpers();

            //act
            var isValid = resHelpers.ValidateCulture(culture, null);
        }
Пример #2
0
        public void ResourceManagerHelpersTests_ValidateCulture_SendInvalidCultureAndListOfAvailableCulture_GetFalseValidation(string culture)
        {
            //arrange
            var resHelpers = new ResourceManagerHelpers();

            //act
            var isValid = resHelpers.ValidateCulture(culture, _availableCultures);

            //assert
            Assert.IsFalse(isValid);
        }
Пример #3
0
        public void ResourceManagerHelpersTests_ValidateCulture_SendCultureNullArgument_GetFalse()
        {
            //arrange
            string culture = null;
            var resHelpers = new ResourceManagerHelpers();

            //act
            var isValid = resHelpers.ValidateCulture(culture, _availableCultures);

            //assert
            Assert.IsFalse(isValid);
        }