public void GetDescendants_Root_ReturnsNone()
        {
            var root      = new CMSNode(-1);
            var rootDescs = root.GetDescendants().Cast <CMSNode>();

            Assert.AreEqual(0, rootDescs.Count());
        }
        public void GetDescendants_ReturnsAllDescendants()
        {
            EnsureTestDocumentTypes();
            var parent      = new CMSNode(testContentType1);
            var parentDescs = parent.GetDescendants().Cast <CMSNode>();

            Assert.AreEqual(3, parentDescs.Count());
            foreach (var desc in parentDescs)
            {
                AssertNonEmptyNode(desc);
            }
        }