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(); }
public UnitOfMeasureValidatorFacts() { _unitOfMeasureValidator = new UnitOfMeasureValidator(); }