Exemplo n.º 1
0
        public void CanFilterByParentItem()
        {
            AncestorFilter filter = new AncestorFilter(child1);

            filter.Filter(allItems);
            Assert.AreEqual(3, allItems.Count);
        }
Exemplo n.º 2
0
        public void CanFilterByParentID(int parentID, int expectedCount)
        {
            AncestorFilter filter = new AncestorFilter(parentID);

            filter.Filter(allItems);
            Assert.AreEqual(expectedCount, allItems.Count);
        }