public void LongSimplePasswordGetsFixed() { PasswordCheck_Accessor target = new PasswordCheck_Accessor(); PasswordCheck pc = new PasswordCheck(); string password = "******"; string username = "******"; password = pc.CheckAndFix(password, username); bool valid = target.ComplexEnough(password); Assert.IsTrue(valid); }
public void PasswordContainingAllSortsIsValid() { PasswordCheck_Accessor target = new PasswordCheck_Accessor(); string password = "******"; bool expected = true; bool actual = target.ComplexEnough(password); Assert.AreEqual(expected, actual); }
public void PasswordContainingUppercaseLowercaseAndSymbolsIsValid() { PasswordCheck_Accessor target = new PasswordCheck_Accessor(); string password = "******"; bool expected = true; bool actual = target.ComplexEnough(password); Assert.AreEqual(expected, actual); }
public void PasswordContainingUppercaseLowercaseAndNumberIsValid() { PasswordCheck_Accessor target = new PasswordCheck_Accessor(); string password = "******"; bool expected = true; bool actual = target.ComplexEnough(password); Assert.AreEqual(expected, actual); }
public void PasswordContainingOnlyLettersNotComplexEnough() { PasswordCheck_Accessor target = new PasswordCheck_Accessor(); string password = "******"; bool expected = false; bool actual = target.ComplexEnough(password); Assert.AreEqual(expected, actual); }
public void PasswordContainingLowercaseAndNumbersNotComplexEnough() { PasswordCheck_Accessor target = new PasswordCheck_Accessor(); string password = "******"; bool expected = false; bool actual = target.ComplexEnough(password); Assert.AreEqual(expected, actual); }