public void TestGetInputData() { List <PasswordPolicy> passwordList = PasswordPolicy.GetInputData(); Assert.AreEqual(1000, passwordList.Count()); }
public bool Check(string password) { return(PasswordPolicy.Check(this.minOccurence, this.maxOccurence, this.policyLetter, password)); }
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); }