Example #1
0
        /// <exception cref="System.Exception"></exception>
        protected override void AssertRetrievedItem(object obj)
        {
            NTNItem item = (NTNItem)obj;

            Assert.IsNotNull(item.tnItem);
            Assert.IsNull(item.tnItem.list);
        }
Example #2
0
        /// <exception cref="System.Exception"></exception>
        public virtual void TestDeactivateDepth()
        {
            NTNItem item   = (NTNItem)RetrieveOnlyInstance();
            TNItem  tnItem = item.tnItem;

            tnItem.Value();
            Assert.IsNotNull(tnItem.list);
            // item.tnItem.list
            Db().Deactivate(item, 2);
            // FIXME: failure
            // Assert.isNull(tnItem.list);
            Db().Activate(item, 42);
            Db().Deactivate(item, 10);
            Assert.IsNull(tnItem.list);
        }
Example #3
0
        /// <exception cref="System.Exception"></exception>
        protected override void AssertItemValue(object obj)
        {
            NTNItem item = (NTNItem)obj;

            Assert.AreEqual(LinkedList.NewList(42), item.tnItem.Value());
        }