Пример #1
0
 public void StrengthByOnlyDigits_StringWithNotOnlyDigits_StrengthReturned() //strength = 0
 {
     Assert.AreEqual(0, PasswordStrengthLib.StrengthByOnlyDigits("aa12a"));
 }
Пример #2
0
 public void StrengthByOnlyDigits_StringWithOnlyDigits_StrengthReturned() //strength = -len
 {
     Assert.AreEqual(-1, PasswordStrengthLib.StrengthByOnlyDigits("1"));
     Assert.AreEqual(-4, PasswordStrengthLib.StrengthByOnlyDigits("1123"));
 }