public void MyTestInitialize() { m_Context = new Context(); m_Name = "CellToCellInterf"; m_Case = new CellToCellInterfCase(); LinkLossAssist.Init(); //ValueMatrixShort BestServerMatrix = new ValueMatrixShort(); TrueFalseMatrix tfMatrix = new TrueFalseMatrix(4, 4, 0.0, 200, 50, true); TDPredictionGroup group = MockGroupAndCell.MockTDPredicGroup(); IACell cell = MockGroupAndCell.CreateTDCell(); ((TDSCDMACarrier)cell).SwitchPoint = 1; List<IACell> cellList = new List<IACell>(); group.tdUIParam.CurrentTimeSlot = 2; double[] x = { 100, 150 }; double[] y = { 100, 100 }; cellList.Add(new TDSCDMACarrier()); cellList.Add(new UMTSCell()); cellList = MockCellList.CreateCellList(cellList, x, y); cellList.Add(cell); ValueMatrixShort BestServerMatrix = GenerateBestServerMatrix(tfMatrix, group); InitCellList(cell, cellList); BestServerMatrix[0] = (short)(cell.ID - 2); m_Context.Add(ContextKeys.Group,group); m_Context.Add(ContextKeys.TFMatrix,tfMatrix); m_Context.Add(ContextKeys.TDBestServerCellID,BestServerMatrix); m_Context.Add(ContextKeys.CellList,cellList); m_Context.Add(ContextKeys.CurrentCalcCell,cell); m_Context.Add(ContextKeys.ApplicationContext,ProjectSingleton.CurrentProject.AppContext); }
public void MyTestInitialize() { m_Index = 0; m_Name = "CellToCellIntef"; m_Context = new Context(); m_Case = new CellToCellInterfCase(); LinkLossAssist.Init(); TrueFalseMatrix matrix = new TrueFalseMatrix(4, 4, 0.0, 200, 50, true); TDPredictionGroup group = MockGroupAndCell.MockTDPredicGroup(); IACell cell = MockGroupAndCell.CreateTDCell(); List<IACell> celllist = new List<IACell>(); double[] x = { 100, 150 }; double[] y = { 100, 100 }; celllist.Add(new TDSCDMACarrier()); celllist.Add(new UMTSCell()); celllist = MockCellList.CreateCellList(celllist, x, y); celllist.Add(cell); InitCelllist(cell, celllist); ValueMatrixShort BestServerCellID = InitMatrix(matrix, group); AddToContext(matrix, group, cell, celllist, BestServerCellID); BestServerCellID[0] = (short)(cell.ID - 2); group.tdUIParam.CurrentTimeSlot = 3; ((TDSCDMACarrier)cell).SwitchPoint = 2; ((TDSCDMACarrier)celllist[0]).SwitchPoint = 3; }