示例#1
0
        public void InvalidRequiredEvent()
        {
            var eventValidator = new EventRequiredValidator(new Info());

            Assert.False(eventValidator.IsValid);
            Assert.Equal(1, eventValidator.Errors.Count());
        }
示例#2
0
        public void ValidRequiredEvent()
        {
            var info           = InfoCreator.CreateValidInfo();
            var eventValidator = new EventRequiredValidator(info);

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