コード例 #1
0
        public void ShouldHaveValidationError_should_correctly_handle_explicitly_providing_object_to_validate()
        {
            var unitOfMeasure = new UnitOfMeasure {
                Value = 1
            };

            var validator = new UnitOfMeasureValidator();

            validator.ShouldHaveValidationErrorFor(unit => unit.Type, unitOfMeasure);
        }
 public UnitOfMeasureValidatorTests()
 {
     _unitOfMeasureValidator = new UnitOfMeasureValidator();
 }
コード例 #3
0
 public UnitOfMeasureValidatorFacts()
 {
     _unitOfMeasureValidator = new UnitOfMeasureValidator();
 }