private void t02_Folder(CMISTestSystem con) { initializeClient(con); CMISFolder root = cmisClient.GetRootFolder(); Assert.AreEqual(con.RootFolder, root.DisplayName); cmisClient.GetRootFolder().GetAllSubFolders().Count(); CMISFolder sub = cmisClient.GetFolderFromPath(con.SubFolder); Assert.AreEqual(con.SubFolder.Split('/').Last(), sub.DisplayName); CMISFolder sub1 = cmisClient.GetSubfolder(sub, sieeSubPath, con.FolderType); CMISFolder sub3 = cmisClient.GetSubfolder(sub, sieeSubPath + "/sub2/sub3", con.FolderType); CMISFolder sub4 = cmisClient.GetSubfolder(sub, sieeSubPath + "/sub2/sub4", con.FolderType); CMISFolder sub2 = cmisClient.GetFolderFromPath(con.SubFolder + "/" + sieeSubPath + "/" + "sub2"); Assert.AreEqual(2, sub2.GetAllSubFolders().Count()); cmisClient.DeleteFolder(sub4); cmisClient.DeleteFolder(sub3); cmisClient.DeleteFolder(sub2); deleteDocument(sub1, documentName); cmisClient.DeleteFolder(sub1); }
private bool TestFunction_Read(ref string errorMsg) { try { cmisClient.GetRootFolder(); return(true); } catch (Exception e) { errorMsg = "Could not read solutions\n" + e.Message; if (e.InnerException != null) { errorMsg += "\n" + e.InnerException.Message; } return(false); } }