コード例 #1
0
        public void InvalidRequiredSeverity()
        {
            var severityValidator = new SeverityRequiredValidator(new Info());

            Assert.False(severityValidator.IsValid);
            Assert.Equal(1, severityValidator.Errors.Count());
        }
コード例 #2
0
        public void ValidRequiredSeverity()
        {
            var info = InfoCreator.CreateValidInfo();
            var severityValidator = new SeverityRequiredValidator(info);

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