예제 #1
0
        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");
        }
예제 #2
0
        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");
        }
예제 #3
0
        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");
        }
 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");
 }
 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");
 }