Beispiel #1
0
        public void UserEditNameTest_Good()
        {
            UserId = SetupUser1();

            UserBridge.EditName(UserId, "newName" + UserId);
            Assert.AreEqual(UserBridge.GetUserName(UserId), "newName" + UserId);
            Assert.IsTrue(UserBridge.DeleteUser(UserId));
        }
Beispiel #2
0
 public void UserEditNameTest_Sad_samename()
 {
     UserId         = new Random().Next();
     User1Name      = "orelie" + UserId;
     User1Pw        = "goodPw1234";
     UserEmailGood1 = "*****@*****.**";
     RegisterUser1();
     Assert.False(UserBridge.EditName(UserId, User1Name));
     Assert.AreEqual(UserBridge.GetUserName(UserId), User1Name);
     UserBridge.DeleteUser(UserId);
 }