示例#1
0
 /// <exception cref="System.Exception"></exception>
 public virtual void Test()
 {
     Add(Values);
     Trans().Commit();
     BTreeAssert.AssertAllSlotsFreed(FileTransaction(), _btree, new _ICodeBlock_22(this
                                                                                   ));
 }
示例#2
0
        /// <exception cref="System.Exception"></exception>
        public virtual void TestDelete()
        {
            Db4objects.Db4o.Collections.ISet <BigSetTestCase.Item> set = NewBigSet();
            set.Add(ItemOne);
            Db().Store(set);
            Db().Commit();
            BTree bTree = BTree(set);

            BTreeAssert.AssertAllSlotsFreed(FileTransaction(), bTree, new _ICodeBlock_259(this
                                                                                          , set));
            Assert.Expect(typeof(InvalidOperationException), new _ICodeBlock_265(set));
        }