public void ShouldNotHaveValidationError_should_correctly_handle_explicitly_providing_object_to_validate() { var unitOfMeasure = new UnitOfMeasure { Value = 1, Type = 43 }; var validator = new UnitOfMeasureValidator(); validator.ShouldNotHaveValidationErrorFor(unit => unit.Type, unitOfMeasure); }
public void GivenAValue_Validate_ShouldNotHaveValidationErrors() { _unitOfMeasureValidator.ShouldNotHaveValidationErrorFor(unit => unit.Value, 0m); }