Exemple #1
0
        public void ShouldReturnInvalidWhenChangePasswordHasInvalidNewPassword()
        {
            Password pass = new Password("vAl1dP4s$");

            pass.Change("vAl1dP4s$", "123");
            Assert.AreNotEqual(true, pass.Valid);
        }
Exemple #2
0
        public void ShouldReturnValidWhenChangePasswordIsValid()
        {
            Password pass = new Password("vAl1dP4s$");

            pass.Change(new Password("vAl1dP4s$").ToString(), "nEwV4l1DP@s$");
            Assert.AreEqual(true, pass.Valid);
        }
Exemple #3
0
 public void ShoulReturnNotificationWhenChangePassword()
 {
     _password.Change("123");
     Assert.AreNotEqual(0, _password.Notifications.Count);
 }