public void RecordTest2() { TDSimUser ue2 = MockUPAUser.CreateUPAuser(); ue2.HSUPA_UEBear = m_BearCollection.First(); ue2.HSUPA_UEWaitState.ReSet(); ue2.IsSheduleSuccess = true; ue2.IsTransmitSuccess = false; RecordTTI target = new RecordTTI(); target.RecordUserState(ue2); int expcted = 1; int actual = ue2.HSUPA_Bearers.Count; Assert.AreEqual(expcted, actual); }
public void RecordTest1() { TDSimUser ue1 = MockUPAUser.CreateUPAuser(); ue1.HSUPA_UEWaitState.ReSet(); ue1.IsSheduleSuccess = true; ue1.IsTransmitSuccess = true; ue1.HSUPA_UEBear = m_BearCollection.First(); ue1.BitRegister = 450; RecordTTI target = new RecordTTI(); target.RecordUserState(ue1); int expected = 290; int actual = ue1.BitRegister; Assert.AreEqual(expected, actual); }