Ejemplo n.º 1
0
        public void InvalidRequiredCertainty()
        {
            var certaintyValidator = new CertaintyRequiredValidator(new Info());

            Assert.False(certaintyValidator.IsValid);
            Assert.Equal(1, certaintyValidator.Errors.Count());
        }
Ejemplo n.º 2
0
        public void ValidRequiredCertainty()
        {
            var info = InfoCreator.CreateValidInfo();
            var certaintyValidator = new CertaintyRequiredValidator(info);

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