Beispiel #1
0
 public void TestMotDePasse_unMotDePasseTropLongEstInvalide()
 {
     MotDePasse motDePasse = new MotDePasse(TEST.CHAINEx257);
     Assert.IsFalse(motDePasse.estValide());
     Assert.AreEqual(VALIDATION.LONGUEUR_MOT_DE_PASSE, motDePasse.donnerLErreur());
 }
Beispiel #2
0
 public void TestMotDePasse_unMotDePasseVideEstInvalide()
 {
     MotDePasse motDePasse = new MotDePasse(null);
     Assert.IsFalse(motDePasse.estValide());
     Assert.AreEqual(VALIDATION.REQUIS_MOT_DE_PASSE, motDePasse.donnerLErreur());
 }
Beispiel #3
0
 public void TestMotDePasse_unMotDePassePasAssezComplexeEstInvalide()
 {
     MotDePasse motDePasse = new MotDePasse("admin123");
     Assert.IsFalse(motDePasse.estValide());
     Assert.AreEqual(VALIDATION.COMPLEXITE_MOT_DE_PASSE, motDePasse.donnerLErreur());
 }