public void CanFilterByParentItem() { AncestorFilter filter = new AncestorFilter(child1); filter.Filter(allItems); Assert.AreEqual(3, allItems.Count); }
public void CanFilterByParentID(int parentID, int expectedCount) { AncestorFilter filter = new AncestorFilter(parentID); filter.Filter(allItems); Assert.AreEqual(expectedCount, allItems.Count); }