FormatErrorMessage() public method

public FormatErrorMessage ( String name ) : String
name String
return String
        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);
        }
        public void FormatErrorMessage_ForInteger()
        {
            attribute = new GreaterThanAttribute(10);

            String expected = String.Format(Validations.GreaterThan, "Sum", attribute.Minimum);
            String actual = attribute.FormatErrorMessage("Sum");

            Assert.Equal(expected, actual);
        }