public void Test_Details(int index, int eNodebId, byte sectorId, int totalMrs, double third, double second, double first) { PreciseCoverage4GCsv stat = stats[index]; Assert.AreEqual(stat.StatTime, new DateTime(2015, 4, 26)); Assert.AreEqual(stat.CellId, eNodebId); Assert.AreEqual(stat.SectorId, sectorId); Assert.AreEqual(stat.ThirdNeighborRate, third); Assert.AreEqual(stat.SecondNeighborRate, second); Assert.AreEqual(stat.FirstNeighborRate, first); }
public void Test_Construction(int cellId, byte sectorId, int totalMrs, double thirdRate, double secondRate, double firstRate, int thirdCount, int secondCount, int firstCount) { PreciseCoverage4GCsv info = new PreciseCoverage4GCsv { CellId = cellId, SectorId = sectorId, TotalMrs = totalMrs, ThirdNeighborRate = thirdRate, SecondNeighborRate = secondRate, FirstNeighborRate = firstRate, StatTime = DateTime.Today }; PreciseCoverage4G resultCoverage4G = new PreciseCoverage4G(); resultCoverage4G.Import(info); Assert.AreEqual(resultCoverage4G.CellId, cellId); Assert.AreEqual(resultCoverage4G.SectorId, sectorId); Assert.AreEqual(resultCoverage4G.StatTime, DateTime.Today); Assert.AreEqual(resultCoverage4G.ThirdNeighbors, thirdCount); Assert.AreEqual(resultCoverage4G.SecondNeighbors, secondCount); Assert.AreEqual(resultCoverage4G.FirstNeighbors, firstCount); }
public void Test_Constructor(string statTime, int cellId, byte sectorId, int totalMrs, double firstRate, double secondRate, double thirdRate) { var info = new PreciseCoverage4GCsv { StatTime = DateTime.Parse(statTime), CellId = cellId, SectorId = sectorId, TotalMrs = totalMrs, FirstNeighborRate = firstRate, SecondNeighborRate = secondRate, ThirdNeighborRate = thirdRate }; var stat = PreciseCoverage4G.ConstructStat(info); Assert.AreEqual(stat.StatTime, DateTime.Parse(statTime)); Assert.AreEqual(stat.CellId, cellId); Assert.AreEqual(stat.SectorId, sectorId); Assert.AreEqual(stat.TotalMrs, totalMrs); Assert.AreEqual(stat.FirstNeighbors, (int)(totalMrs * firstRate) / 100); Assert.AreEqual(stat.SecondNeighbors, (int)(totalMrs * secondRate) / 100); Assert.AreEqual(stat.ThirdNeighbors, (int)(totalMrs * thirdRate) / 100); }
public void Test_Construction(int cellId, byte sectorId, int totalMrs, double thirdRate, double secondRate, double firstRate, int thirdCount, int secondCount, int firstCount) { PreciseCoverage4GCsv info = new PreciseCoverage4GCsv { CellId = cellId, SectorId = sectorId, TotalMrs = totalMrs, ThirdNeighborRate = thirdRate, SecondNeighborRate = secondRate, FirstNeighborRate = firstRate, StatTime = DateTime.Today }; PreciseCoverage4G resultCoverage4G = new PreciseCoverage4G(); resultCoverage4G.Import(info); Assert.AreEqual(resultCoverage4G.CellId, cellId); Assert.AreEqual(resultCoverage4G.SectorId, sectorId); Assert.AreEqual(resultCoverage4G.StatTime, DateTime.Today); Assert.AreEqual(resultCoverage4G.ThirdNeighbors, thirdCount); Assert.AreEqual(resultCoverage4G.SecondNeighbors, secondCount); Assert.AreEqual(resultCoverage4G.FirstNeighbors, firstCount); }