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