Beispiel #1
0
        public void IsValid_Returns_True_When_No_Errors_Are_Supplied()
        {
            var validationResult = new ValidationResult();

            validationResult.IsValid.ShouldBeTrue();
        }
Beispiel #2
0
        public void IsValid_Returns_False_When_Errors_Are_Supplied()
        {
            var validationResult = new ValidationResult(new ValidationResult.ValidationError("uweb", "uweb"));

            validationResult.IsValid.ShouldBeFalse();
        }