Beispiel #1
0
        public void LeaderBoardByHighestCashTestSad()
        {
            int[] userIds = CreateUsersWithCashGain(1); //only 1 user

            List <IUser> users = UserBridge.GetUsersByHighestCash();

            Assert.GreaterOrEqual(users.Count, 1);
            Assert.IsTrue(users[0].Id() == userIds[0]);
            foreach (int t in userIds)
            {
                UserBridge.DeleteUser(t);
            }
        }
Beispiel #2
0
        public void LeaderBoardByHighestCashTestGood()
        {
            var userIds = CreateUsersWithCashGain(25);

            List <IUser> users = UserBridge.GetUsersByHighestCash();

            Assert.AreEqual(20, users.Count);
            for (int i = 0; i < 20; i++)
            {
                int currId = users[i].Id();
                Assert.IsTrue(currId == userIds[i]);
            }
            for (int i = 0; i < userIds.Length; i++)
            {
                UserBridge.DeleteUser(userIds[i]);
            }
        }