public FormatErrorMessage ( String name ) : String | ||
name | String | |
Результат | String |
public override String FormatErrorMessage(String name)
{
return String.Format(ErrorMessageString, name, Minimum);
}
public override Boolean IsValid(Object value)
public void FormatErrorMessage_ForDouble() { attribute = new GreaterThanAttribute(12.56); String expected = String.Format(Validations.FieldMustBeGreaterThan, "Sum", attribute.Minimum); String actual = attribute.FormatErrorMessage("Sum"); Assert.Equal(expected, actual); }