You've already forked linux-packaging-mono
Imported Upstream version 5.16.0.100
Former-commit-id: 38faa55fb9669e35e7d8448b15c25dc447f25767
This commit is contained in:
parent
0a9828183b
commit
7d7f676260
@ -129,18 +129,18 @@ namespace MonoTests.System.ComponentModel.DataAnnotations
|
||||
Assert.IsFalse (attr.IsValid ("12"), "#A1-2");
|
||||
Assert.IsTrue (attr.IsValid (null), "#A1-3");
|
||||
Assert.IsTrue (attr.IsValid (String.Empty), "#A1-4");
|
||||
Assert.Throws <Exception> (() => {
|
||||
Assert.Throws <ArgumentException> (() => {
|
||||
attr.IsValid ("zero");
|
||||
}, "#A1-5");
|
||||
Assert.IsTrue (attr.IsValid (null), "#A1-6");
|
||||
attr = new DA.RangeAttribute (typeof (int), "minus ten", "ten");
|
||||
Assert.Throws<Exception> (() => {
|
||||
Assert.Throws<ArgumentException> (() => {
|
||||
attr.IsValid ("0");
|
||||
}, "#A2-1");
|
||||
Assert.Throws<Exception> (() => {
|
||||
Assert.Throws<ArgumentException> (() => {
|
||||
attr.IsValid ("12");
|
||||
}, "#A2-2");
|
||||
Assert.Throws<Exception> (() => {
|
||||
Assert.Throws<ArgumentException> (() => {
|
||||
attr.IsValid ("zero");
|
||||
}, "#A2-3");
|
||||
|
||||
|
Reference in New Issue
Block a user