public void ExportFolders() { reader.GetFolders("/SSRSMigrate_AW_Tests", GetFolders_Reporter); foreach (FolderItem actualFolderItem in actualFolderItems) { string saveFilePath = outputPath + SSRSUtil.GetServerPathToPhysicalPath(actualFolderItem.Path); ExportStatus actualStatus = folderExporter.SaveItem( actualFolderItem, saveFilePath, true); // Export was successful Assert.True(actualStatus.Success, string.Format("Success; {0}", actualFolderItem.Path)); // Exported to the expected location Assert.AreEqual(saveFilePath, actualStatus.ToPath, string.Format("ToPath; {0}", actualFolderItem.Path)); // Was exported from the expected location Assert.AreEqual(actualFolderItem.Path, actualStatus.FromPath, string.Format("ToPath; {0}", actualFolderItem.Path)); // The exported FolderItem exists on disk Assert.True(Directory.Exists(actualStatus.ToPath)); } }
public void GetFolders() { List <FolderItem> actual = reader.GetFolders("/SSRSMigrate_AW_Tests"); Assert.AreEqual(expectedFolderItems.Count(), actual.Count()); }