public virtual void TestClear() { LockedTree lockedTree = new LockedTree(); lockedTree.Add(new TreeInt(1)); Assert.Expect(typeof(InvalidOperationException), new _ICodeBlock_38(lockedTree)); }
public void Visit(object obj) { var treeInt = (TreeInt)obj; if (treeInt._key == 1) { lockedTree.Add(new TreeInt(2)); } }
public virtual SlotChange ProduceSlotChange(int id, SlotChangeFactory slotChangeFactory ) { if (DTrace.enabled) { DTrace.ProduceSlotChange.Log(id); } SlotChange slot = slotChangeFactory.NewInstance(id); _slotChanges.Add(slot); return((SlotChange)slot.AddedOrExisting()); }