Beispiel #1
0
        public void TestGetInputData()
        {
            List <PasswordPolicy> passwordList = PasswordPolicy.GetInputData();

            Assert.AreEqual(1000, passwordList.Count());
        }
Beispiel #2
0
 public bool Check(string password)
 {
     return(PasswordPolicy.Check(this.minOccurence, this.maxOccurence, this.policyLetter, password));
 }
Beispiel #3
0
        public void TestPasswordPolicyCheck(int minOccurence, int maxOccurence, char policyLetter, string password, bool expectedValid)
        {
            bool passwordValid = PasswordPolicy.Check(minOccurence, maxOccurence, policyLetter, password);

            Assert.AreEqual(passwordValid, expectedValid);
        }