public void TestCalculatePerformance_MFMeasurePointResult()
 {
     MeasurableCellRepository repository = new MeasurableCellRepository
     {
         CellList = _cellList
     };
     MeasurePointResult result = new MfMeasurePointResult();
     result.StrongestCell = repository.CalculateStrongestCell();
     result.CalculateInterference(repository.CellList, 0.1);
     result.NominalSinr = result.StrongestCell.ReceivedRsrp - result.TotalInterferencePower;
     Assert.AreEqual(result.StrongestCell, _cellList[0]);
     Assert.AreEqual(result.StrongestInterference, _cellList[1]);
     Assert.AreEqual(result.SameModInterferenceLevel, -80);
     Assert.AreEqual(result.DifferentModInterferenceLevel, -80);
     Assert.AreEqual(result.TotalInterferencePower, -79.586073, 1E-6);
     Assert.AreEqual(result.NominalSinr, 9.586073, 1E-6);
 }
 public void TestCalculatePerformance_MFMeasurePointResult_NoSameFrequencySameModCell()
 {
     _cellList[1].Cell.Cell.Frequency = 1825;
     MeasurableCellRepository repository = new MeasurableCellRepository
     {
         CellList = _cellList
     };
     MeasurePointResult result = new MfMeasurePointResult();
     result.StrongestCell = repository.CalculateStrongestCell();
     result.CalculateInterference(repository.CellList, 0.1);
     result.NominalSinr = result.StrongestCell.ReceivedRsrp - result.TotalInterferencePower;
     Assert.AreEqual(result.StrongestCell, _cellList[0]);
     Assert.AreEqual(result.StrongestInterference, null);
     Assert.AreEqual(result.SameModInterferenceLevel, double.MinValue);
     Assert.AreEqual(result.DifferentModInterferenceLevel, -80);
     Assert.AreEqual(result.TotalInterferencePower, -90);
     Assert.AreEqual(result.NominalSinr, 20);
 }
예제 #3
0
 public MeasurePoint()
 {
     Result         = new MfMeasurePointResult();
     CellRepository = new MeasurableCellRepository();
 }