public void ReturnsTrueWithValidValue() { var attr = new CultureInfoAttribute(); string value = "fr-FR"; bool expected = true; bool result = attr.IsValid(value); Assert.AreEqual(expected, result); }
public void DisallowNeutral_ReturnsTrueWithNonNeutral() { var attr = new CultureInfoAttribute(); attr.AllowNeutralCulture = false; string value = "fr-CA"; bool expected = true; bool result = attr.IsValid(value); Assert.AreEqual(expected, result); }