Example #1
0
        public void InvalidRequiredCategories()
        {
            var categoryValidator = new CategoryRequiredValidator(new Info());

            Assert.False(categoryValidator.IsValid);
            Assert.Equal(1, categoryValidator.Errors.Count());
        }
Example #2
0
        public void ValidRequiredCategories()
        {
            var info = InfoCreator.CreateValidInfo();
            var categoriesValidator = new CategoryRequiredValidator(info);

            Assert.True(categoriesValidator.IsValid);
            Assert.Equal(0, categoriesValidator.Errors.Count());
        }