コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: ContainerTests.cs プロジェクト: ouyh18/LtePlatform
 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);
 }