public UpdateUser ( |
||
user | ||
Результат | bool |
public void UpdateUserServerTests() { DataManager target = new DataManager(); target.CleanForumData(); User userTemp = new User("user", "user"); target.AddUser(userTemp); target.AddSubforum(new Subforum("subforumName")); User user = target.GetUser("user"); user.Password = "******"; bool actual; actual = target.UpdateUser(user); Assert.IsTrue(actual); Assert.AreEqual(user.Password, target.GetUser("user").Password); target.RemoveSubforum("subforumName"); }