Example #1
0
 public void CommaCanInputStringInFRCulture()
 {
     CultureInfo.CurrentCulture = new CultureInfo("fr-FR");
     Assert.That(DoubleValidationRule.IsCanInputString(","), Is.EqualTo(true));
     CultureInfo.CurrentCulture = new CultureInfo("ja-JP");
 }
Example #2
0
 public void CanNotInputString([Values("1.0.", "--")] string inputstring)
 {
     Assert.That(DoubleValidationRule.IsCanInputString(inputstring), Is.EqualTo(false));
 }
Example #3
0
 public void CanInputStringInJpCulture([Values("1.0", "-", "-10.00", ".1", "100.123456789")] string inputstring)
 {
     CultureInfo.CurrentCulture = new CultureInfo("ja-JP");
     Assert.That(DoubleValidationRule.IsCanInputString(inputstring), Is.EqualTo(true));
 }