diff options
author | Alexander Köplinger <alex.koeplinger@outlook.com> | 2015-11-24 19:53:48 +0300 |
---|---|---|
committer | Alexander Köplinger <alex.koeplinger@outlook.com> | 2015-11-24 19:54:47 +0300 |
commit | 2b1d785ca4cc5758f6beeb92fcbeb0a6da4a21b3 (patch) | |
tree | 5c6f1c50dcd2e8873ccce341a47e520d40aa02b5 /mcs/class/System.ComponentModel.DataAnnotations | |
parent | b14d33150a58ce929b6a9b9b08529c1a51187d68 (diff) |
[System.ComponentModel.DataAnnotations] Update tests to match the new strings from 21a3421f4c1a40a0b3af25e2533e3fef72e31869
Diffstat (limited to 'mcs/class/System.ComponentModel.DataAnnotations')
2 files changed, 3 insertions, 3 deletions
diff --git a/mcs/class/System.ComponentModel.DataAnnotations/Test/System.ComponentModel.DataAnnotations/DisplayAttributeTest.cs b/mcs/class/System.ComponentModel.DataAnnotations/Test/System.ComponentModel.DataAnnotations/DisplayAttributeTest.cs index c9db2ac448d..5096568c169 100644 --- a/mcs/class/System.ComponentModel.DataAnnotations/Test/System.ComponentModel.DataAnnotations/DisplayAttributeTest.cs +++ b/mcs/class/System.ComponentModel.DataAnnotations/Test/System.ComponentModel.DataAnnotations/DisplayAttributeTest.cs @@ -70,7 +70,7 @@ namespace MonoTests.System.ComponentModel.DataAnnotations public class DisplayAttributeTests { const string property_not_set_message = "The {0} property has not been set. Use the Get{0} method to get the value."; - const string localization_failed_message = "Cannot retrieve property '{0}' because localization failed. Type '{1}' is not public or does not contain a public static string property with the name '{2}'."; + const string localization_failed_message = "Cannot retrieve property '{0}' because localization failed. Type '{1}' is not public or does not contain a public static string property with the name '{2}'."; [Test] public void StringProperties_ReturnLiteralValues_Success() diff --git a/mcs/class/System.ComponentModel.DataAnnotations/Test/System.ComponentModel.DataAnnotations/RegularExpressionAttributeTest.cs b/mcs/class/System.ComponentModel.DataAnnotations/Test/System.ComponentModel.DataAnnotations/RegularExpressionAttributeTest.cs index 2462517cffa..bb9852e1fc9 100644 --- a/mcs/class/System.ComponentModel.DataAnnotations/Test/System.ComponentModel.DataAnnotations/RegularExpressionAttributeTest.cs +++ b/mcs/class/System.ComponentModel.DataAnnotations/Test/System.ComponentModel.DataAnnotations/RegularExpressionAttributeTest.cs @@ -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."); |