public void CommaCanInputStringInFRCulture() { CultureInfo.CurrentCulture = new CultureInfo("fr-FR"); Assert.That(DoubleValidationRule.IsCanInputString(","), Is.EqualTo(true)); CultureInfo.CurrentCulture = new CultureInfo("ja-JP"); }
public void CanNotInputString([Values("1.0.", "--")] string inputstring) { Assert.That(DoubleValidationRule.IsCanInputString(inputstring), Is.EqualTo(false)); }
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)); }