Exemple #1
0
        private void AssertSinglePersistentItem(Db4o.Collections.ISet <Item
                                                                       > set)
        {
            var expectedItem = (Item)RetrieveOnlyInstance(typeof(
                                                              Item));

            Assert.IsNotNull(set);
            Assert.AreEqual(1, set.Count);
            IEnumerator setIterator = set.GetEnumerator();

            Assert.IsNotNull(setIterator);
            Assert.IsTrue(setIterator.MoveNext());
            var actualItem = (Item)setIterator.Current;

            Assert.AreSame(expectedItem, actualItem);
        }
Exemple #2
0
 public _ICodeBlock_265(Db4o.Collections.ISet <Item> set)
 {
     this.set = set;
 }
Exemple #3
0
 public _ICodeBlock_259(BigSetTestCase _enclosing, Db4o.Collections.ISet
                        <Item> set)
 {
     this._enclosing = _enclosing;
     this.set        = set;
 }
Exemple #4
0
 /// <exception cref="System.MemberAccessException"></exception>
 public static BTree BTree(Db4o.Collections.ISet <Item> set
                           )
 {
     return((BTree)Reflection4.GetFieldValue(set, "_bTree"));
 }