Esempio n. 1
0
 public void TestGetSafetyByRepeateChars()
 {
     Assert.AreEqual(0, passwordStrength.GetSafetyByRepeateChars("a"));
     Assert.AreEqual(-2, passwordStrength.GetSafetyByRepeateChars("aa"));
     Assert.AreEqual(-3, passwordStrength.GetSafetyByRepeateChars("aaa"));
     Assert.AreEqual(-2, passwordStrength.GetSafetyByRepeateChars("aab"));
     Assert.AreEqual(-4, passwordStrength.GetSafetyByRepeateChars("aabb"));
 }