var rea = new RegularExpressionAttributePoker (@"[A-Za-z]");
Assert.AreEqual (@"[A-Za-z]", rea.Pattern, "Patterns not saved correctly.");
Assert.AreEqual (null, rea.ErrorMessage, "Error message not null when not yet matched.");
- Assert.AreEqual ("The field {0} must match the regular expression {1}.", rea.GetErrorMessageString (), "Error message not valid.");
+ Assert.AreEqual ("The field {0} must match the regular expression '{1}'.", rea.GetErrorMessageString (), "Error message not valid.");
}
[Test]
{
var rea = new RegularExpressionAttributePoker (@"[A-Za-z]");
- Assert.AreEqual ("The field MyField must match the regular expression [A-Za-z].",
+ Assert.AreEqual ("The field MyField must match the regular expression '[A-Za-z]'.",
rea.FormatErrorMessage ("MyField"),
"Error message not correctly formatted.");