public void getAndAssertChildren(ObjectsHierarchy hierarchy, string filter, int skipCount, int maxItems, RenditionData renditionData)
        {
            string[] foldersIds           = hierarchy.FolderIds.ToArray();
            string[] documentsIds         = hierarchy.DocumentIds.ToArray();
            string[] allCreatedObjectsIds = hierarchy.toIdsArray();
            string   rootFolderId         = hierarchy.RootFolder.ObjectId;

            cmisObjectInFolderListType children = getAndAssertChildren(rootFolderId, filter, null, maxItems, skipCount, renditionData != null ? renditionData.getFilter() : null);

            cmisObjectType[] childrenObjects = new cmisObjectType[children.objects.Length];
            for (int i = 0; i < children.objects.Length; ++i)
            {
                childrenObjects[i] = children.objects[i] != null ? children.objects[i].@object : null;
            }

            if (maxItems > 0)
            {
                int resultCount = (skipCount + maxItems) < allCreatedObjectsIds.Length ? maxItems : allCreatedObjectsIds.Length - skipCount;
                Assert.IsTrue(resultCount == childrenObjects.Length, "Count of returned items doesn't equal to expected count");
            }
            else
            {
                assertObjectsByType(enumTypesOfFileableObjects.any, documentsIds, foldersIds, allCreatedObjectsIds, childrenObjects);
            }
            foreach (cmisObjectType cmisObject in childrenObjects)
            {
                assertObjectProperties(cmisObject.properties, filter);
                if (renditionData != null)
                {
                    assertRenditions(cmisObject, renditionData.getFilter(), renditionData.getExpectedKinds(), renditionData.getExpectedMimetypes());
                }
            }
            logger.log("Children were successfully received");
            logger.log("");
        }
        private void assertFolderParentReceiving()
        {
            FileableObject   rootFolder = createAndAssertFolder(getAndAssertRootFolder());
            ObjectsHierarchy hierarchy  = createAndAssertFilesHierarchy(rootFolder, 1, 1, 1, enumTypesOfFileableObjects.folders);

            string[] createdObjectsIds = hierarchy.toIdsArray();
            assertFolderParents(createdObjectsIds[createdObjectsIds.Length - 1], new string[] { rootFolder.ObjectId }, false);
            deleteAndAssertHierarchy(hierarchy, enumUnfileObject.delete, true);
        }
        private void assertObjectParentsReceiving()
        {
            FileableObject   rootFolder = createAndAssertFolder(getAndAssertRootFolder());
            ObjectsHierarchy hierarchy  = createAndAssertFilesHierarchy(rootFolder, 1, 2, 3, enumTypesOfFileableObjects.documents);

            string[] createdObjectsIds = hierarchy.toIdsArray();
            foreach (string objectId in createdObjectsIds)
            {
                assertDocumentParents(objectId, new string[] { rootFolder.ObjectId });
            }
            deleteAndAssertHierarchy(hierarchy, enumUnfileObject.delete, true);
        }