public override TResult this[int index]
 {
     get
     {
         int indexInCollection;
         var collectionContainingItem = _collectionIndex.GetLeaf(index, out indexInCollection).Value;
         return(collectionContainingItem[indexInCollection]);
     }
     set { throw new AccessViolationException(); }
 }
Ejemplo n.º 2
0
        public void Add_OneItem_ItemInList()
        {
            _coinFlipper.QueueFlip(true);
            _target.CoinFlipper = _coinFlipper;
            _target.Add(0, 1, _values[0]);

            var node = _target.GetLeaf(0);

            Assert.AreEqual(_values[0], node.Value);
        }