private GetSubforum ( |
||
subforumEntity | ||
리턴 |
public void RemoveSubforumServerTests() { DataManager target = new DataManager(); // TODO: Initialize to an appropriate value target.CleanForumData(); User user = new User("user", "user"); target.AddUser(user); target.AddSubforum(new Subforum("subforumName")); string subforum = "subforum"; Subforum actual = null; bool ans = target.AddSubforum(new Subforum(subforum)); actual = target.GetSubforum(subforum); Assert.IsNotNull(actual); Assert.IsTrue(target.RemoveSubforum(subforum)); try { actual = target.GetSubforum(subforum); } catch (Exception) { Assert.IsTrue(true); } target.RemoveSubforum("subforumName"); }