Exemple #1
0
 public void UserEditEmailTestGood()
 {
     UserId         = new Random().Next();
     User1Name      = "orelie" + UserId;
     User1Pw        = "goodPw1234";
     UserEmailGood1 = "*****@*****.**";
     RegisterUser1();
     Assert.True(UserBridge.EditEmail(UserId, _user2EmailGood));
     Assert.AreEqual(UserBridge.GetUserEmail(UserId), _user2EmailGood);
     UserBridge.DeleteUser(UserId);
 }
Exemple #2
0
        public void UserEditEmailTestBad()
        {
            UserId         = new Random().Next();
            User1Name      = "Oded" + UserId;
            User1Pw        = "goodPw1234";
            UserEmailGood1 = "*****@*****.**";
            RegisterUser1();
            Assert.False(UserBridge.EditEmail(UserId, _userEmailBad));
            Assert.AreEqual(UserBridge.GetUserEmail(UserId), UserEmailGood1);

            Assert.False(UserBridge.EditEmail(UserId, _userEmailBad));
            Assert.AreEqual(UserBridge.GetUserEmail(UserId), UserEmailGood1);
            UserBridge.DeleteUser(UserId);
        }