[mono/mono] dd197f0c: Ignore some asserts since the validation were removed
| Newsgroups | gmane.comp.gnome.mono.patches |
|---|---|
| Message-ID | <00000141854e862d-dc595f95-73f3-4016-a347-f264abaaea17-000000@email.amazonses.com> |
Branch: refs/heads/master
Home: https://github.com/mono/mono
Compare: https://github.com/mono/mono/compare/096c647c806d...dd197f0c5f85
Commit: dd197f0c5f8508db217cd00eac9e56e59cd8876d
Author: Sebastien Pouliot <[email protected]> (spouliot)
Date: 2013-10-04 21:08:48 GMT
URL: https://github.com/mono/mono/commit/dd197f0c5f8508db217cd00eac9e56e59cd8876d
Ignore some asserts since the validation were removed
Changed paths:
M mcs/class/System.ComponentModel.DataAnnotations/Test/System.ComponentModel.DataAnnotations/CreditCardAttributeTest.cs
M mcs/class/System.ComponentModel.DataAnnotations/Test/System.ComponentModel.DataAnnotations/EmailAddressAttributeTest.cs
Modified: mcs/class/System.ComponentModel.DataAnnotations/Test/System.ComponentModel.DataAnnotations/CreditCardAttributeTest.cs
===================================================================
@@ -51,7 +51,9 @@ public void IsValid ()
Assert.IsTrue (sla.IsValid ("378282246310005"), "#A1-4");
Assert.IsTrue (sla.IsValid ("3782-8224-6310-005"), "#A1-5");
Assert.IsTrue (sla.IsValid ("371449635398431"), "#A-6");
+#if false
Assert.IsFalse (sla.IsValid ("371449635498431"), "#A-6b");
+#endif
Assert.IsFalse (sla.IsValid (true), "#A1-7");
Assert.IsFalse (sla.IsValid (DateTime.Now), "#A1-8");
}
Modified: mcs/class/System.ComponentModel.DataAnnotations/Test/System.ComponentModel.DataAnnotations/EmailAddressAttributeTest.cs
===================================================================
@@ -46,8 +46,10 @@ public void IsValid ()
var sla = new EmailAddressAttribute ();
Assert.IsTrue (sla.IsValid (null), "#A1-1");
+#if false
Assert.IsFalse (sla.IsValid (String.Empty), "#A1-2");
Assert.IsFalse (sla.IsValid ("string"), "#A1-3");
+#endif
Assert.IsTrue (sla.IsValid ("[email protected]"), "#A1-4");
Assert.IsTrue (sla.IsValid ("[email protected]"), "#A1-5");
Assert.IsFalse (sla.IsValid (123), "#A1-6");
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches