public bool ValidatePassword(string str) { if (string.IsNullOrEmpty(str)) { return(false); } return(sValidator.ContainsDigit(str) && sValidator.ContainsLowwerCharacter(str) && sValidator.ContainsUpperCharacter(str) && sValidator.ContainsSpecialCharacter(str) && sValidator.LenBeetwen(str, (int)LEN_PASSWORD.MIN, (int)LEN_PASSWORD.MAX)); }
public void NotNull_Test_False() { False(simpleValidator.ContainsDigit(null)); False(simpleValidator.ContainsSpecialCharacter(null)); False(simpleValidator.IsOnlyDigit(null)); False(simpleValidator.StartsFromDigit(null)); False(simpleValidator.ContainsLowwerCharacter(null)); False(simpleValidator.ContainsUpperCharacter(null)); False(simpleValidator.IsLowerCase(null)); False(simpleValidator.IsUpperCase(null)); False(simpleValidator.MatchesRegExp(null, null)); False(simpleValidator.MatchesRegExp(null, "")); False(simpleValidator.MatchesRegExp("", null)); False(simpleValidator.LessThanMaxLength(null, uint.MaxValue)); False(simpleValidator.MoreThanMinLength(null, uint.MaxValue)); False(simpleValidator.LenBeetwen(null, uint.MaxValue, uint.MaxValue)); }