/// <summary> /// Asserts whether if the given file exists in the given folder, and reports the difference /// </summary> protected void AssertFolderNotEmpty(string relFolderPath, string fileTypes = "*.*") { var anomalies = new Anomalies(); Assert.IsTrue(FolderNotEmpty(relFolderPath, fileTypes, anomalies), anomalies.Format()); }
/// <summary> /// Asserts whether if the given file exists in the given folder, and reports the difference /// </summary> protected void AssertFolderNotEmpty(string relFolderPath, string fileTypes = "*.*") { var anomalies = new Anomalies(); Assert.IsTrue(FolderNotEmpty(relFolderPath, fileTypes, anomalies), anomalies.Format()); }
/// <summary> /// Asserts whether the given folder contains only the given files, and no others, and reports the difference /// </summary> protected void AssertFolderContainsExclusive(string relFolderPath, IEnumerable <string> filenames) { var anomalies = new Anomalies(); Assert.IsTrue(FolderContainsExclusive(relFolderPath, filenames, anomalies), anomalies.Format()); }
/// <summary> /// Asserts whether the given folder contains only the given files, and no others, and reports the difference /// </summary> protected void AssertFolderContainsExclusive(string relFolderPath, IEnumerable<string> filenames) { var anomalies = new Anomalies(); Assert.IsTrue(FolderContainsExclusive(relFolderPath, filenames, anomalies), anomalies.Format()); }