Пример #1
0
 public void UserEditPwTest_Bad_invalid_passwords()
 {
     UserId         = new Random().Next();
     User1Name      = "orelie" + UserId;
     User1Pw        = "goodPw1234";
     UserEmailGood1 = "*****@*****.**";
     _userPwBad     = "bad";
     RegisterUser1();
     Assert.False(UserBridge.EditPw(UserId, _userPwBad));
     Assert.AreEqual(UserBridge.GetUserPw(UserId), User1Pw);
     UserBridge.DeleteUser(UserId);
 }
Пример #2
0
        public void UserEditPwTest_Good()
        {
            UserId         = new Random().Next();
            User1Name      = "orelie" + UserId;
            User1Pw        = "goodPw1234";
            UserEmailGood1 = "*****@*****.**";
            RegisterUser1();

            Assert.True(UserBridge.EditPw(UserId, _user2Pw));
            Assert.AreEqual(UserBridge.GetUserPw(UserId), _user2Pw);
            UserBridge.DeleteUser(UserId);
        }