Example #1
0
        public void IsAncestorOrEqual()
        {
            var dirA  = new ContentPath("a");
            var itemB = dirA.CatDir("b");

            Assert.True(dirA.IsAncestorOrSelf(itemB));
            Assert.True(dirA.IsAncestorOrSelf(dirA));
            Assert.False(itemB.IsAncestorOrSelf(dirA));
        }