コード例 #1
0
 public void IsValid([Values("0","123","12345.6")] 
     string value)
 {
     var v = new IsNumericAttribute();
     Assert.That(v.IsValid(value, null));
 }
コード例 #2
0
 public void IsNotValid([Values("a", "123.,", "12345...6")] 
     string value)
 {
     var v = new IsNumericAttribute();
     Assert.That(!v.IsValid(value, null));
 }