Пример #1
0
        //负载过高
        public void AssignUnsuccess2()
        {
            AssignCell target2 = new AssignCell(-1);

            bool expected = false;
            bool actual;
            actual = target2.AssignCellForUser(user);
            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        //负载过大
        public void AssignUnsuccess6()
        {
            TDSimCell cell1 = MockUPAcell.CreatUPACell(true);
            List<TDSimCell> celllist = new List<TDSimCell>();
            celllist.Add(cell1);
            TDSimTran tdtran = new TDSimTran(celllist);

            TDSimUser ue = MockUPAUser.CreateUPAuser();

            ue.PrimeCell=cell1;
            cell1.HSUPATotalRate = 5;

            AssignCell target2 = new AssignCell(0);

            bool expected = false;
            bool actual;

            actual = target2.AssignCellForUser(ue);
            Assert.AreEqual(expected, actual);
        }