public void Test() { var relation = new EUtranRelationZte { eNodeB_Id = 11111, isAnrCreated = 1, isHOAllowed = 1, isRemoveAllowed = 0, nCelPriority = 22 }; var item = relation.MapTo <NeighborCellMongo>(); Assert.AreEqual(item.CellId, 11111); Assert.IsTrue(item.IsAnrCreated); item.HandoffAllowed.ShouldBeTrue(); item.RemovedAllowed.ShouldBeFalse(); item.CellPriority.ShouldBe(22); }
public void Test() { var relation = new EUtranRelationZte { eNodeB_Id = 11111, isAnrCreated = 1, isHOAllowed = 1, isRemoveAllowed = 0, nCelPriority = 22 }; var item = relation.MapTo<NeighborCellMongo>(); Assert.AreEqual(item.CellId, 11111); Assert.IsTrue(item.IsAnrCreated); item.HandoffAllowed.ShouldBeTrue(); item.RemovedAllowed.ShouldBeFalse(); item.CellPriority.ShouldBe(22); }