private AutoTreeSortedList <Item, int, int> GenerateTestTree() { var list = AutoTreeSortedList <Item> .Create( x => x.Id, x => x.ParentId, (x, y) => x == y, x => x.SortKey, (lhs, rhs) => lhs - rhs); foreach (var item in GenerateTestItems()) { list.Upsert(item); } return(list); }
public static List <LinearTreeNode <Item> > CreateAutoDispatchedList(AutoTreeSortedList <Item, int, int> tree) { return(TreeTests.CreateAutoDispatchedList <LinearTreeNode <Item>, AutoTreeSortedList <Item, int, int> >(tree)); }