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