public void getNextUserTest3() { VKUser expected = null; VKUser root = new VKUser(29411485); VKFriendsQueue queue = new VKFriendsQueue(root); queue.getNextUser(); VKUser result = queue.getNextUser(); Assert.AreEqual(expected, result, "Method getNextUser() doesn`t extract user from queue correctly"); }
public void getNextUserTest1() { int expected = 0; VKUser root = new VKUser(29411485); VKFriendsQueue queue = new VKFriendsQueue(root); queue.getNextUser(); Assert.AreEqual(expected, queue.UserCount, "Method getNextUser() doesn`t extract user from queue correctly"); }
public void hasNextUserFalseTest() { bool expected = false; VKUser root = new VKUser(29411485); VKFriendsQueue queue = new VKFriendsQueue(root); queue.getNextUser(); bool result = queue.hasHextUser(); Assert.AreEqual(expected, result, "Method hasNextUser() doesn`t find next user in queue correctly"); }