Esempio n. 1
0
 public void IsDecimal_Test()
 {
     Assert.False(RegexUtil.IsDecimal("12.322", 2));
     Assert.False(RegexUtil.IsDecimal("15.102", 2));
     Assert.True(RegexUtil.IsDecimal("11.32", 2));
 }
Esempio n. 2
0
 public void IsDecimal_Between_Test()
 {
     Assert.True(RegexUtil.IsDecimal("12.55", 12m, 13m, 2));
     Assert.False(RegexUtil.IsDecimal("12.55", 13m, 14m, 2));
     Assert.False(RegexUtil.IsDecimal("12.55", 12m, 14m, 1));
 }