public void Validate_NoWin_Success() { CharacterSetConstraint c = new CharacterSetConstraint(CharacterSetConstraint.CharSet.Windows1252); IEnumerable<ParameterValidationResult> res = c.Validate("Hello World\nä€φ", ParameterDataType.String, Constants.MemberName); Assert.IsNotNull(res); Assert.IsTrue(res.GetEnumerator().MoveNext()); }
public void Validate_NoAscii_Success() { CharacterSetConstraint c = new CharacterSetConstraint(CharacterSetConstraint.CharSet.Ascii); IEnumerable<ParameterValidationResult> res = c.Validate("Holà!", ParameterDataType.String, Constants.MemberName); Assert.IsNotNull(res); Assert.IsTrue(res.GetEnumerator().MoveNext()); }