public override void Add() { int i = reference.Count > 0 ? random.Next((int)reference.Count + 1) : 0; int xStart = i < reference.Count ? ((INonInvasiveRange2MapInspection)reference).GetRanges()[i].x.start : reference.GetExtent(); int xLength = random.Next(100) + 1; actual.Insert(xStart, xLength); // throws when capacity locked & exhausted reference.Insert(xStart, xLength); }
public override void Do(IRangeList tree, IRangeList treeAnalog) { tree.Insert(start, length); treeAnalog.Insert(start, length); }
public override void Do(IRangeList tree) { tree.Insert(start, length); }