[mcs] Remove NET_4_5 ifdef from the source files
[mono.git] / mcs / class / System.ComponentModel.DataAnnotations / Test / System.ComponentModel.DataAnnotations / RegularExpressionAttributeTest.cs
index 2462517cffa24875aad607175647b6923ef635c3..bb9852e1fc926e1801d541103b4a7772bf688fa3 100644 (file)
@@ -56,7 +56,7 @@ namespace MonoTests.System.ComponentModel.DataAnnotations
                        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]
@@ -64,7 +64,7 @@ namespace MonoTests.System.ComponentModel.DataAnnotations
                {
                        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.");