public void CheckFilesExist_SearchForNonexistentFiles_ThrowsException() { //Act TestDelegate td = () => FileLibrary.CheckFilesExist(testFilesDirPath, "SomeFile.txt", 1, 1); //Assert Assert.Throws(typeof(ValidationException), td, "Objects are not equal (actual='0', expected='1')."); }
public void CheckFilesExist_SearchForExistingFiles_DoNotThrowsException() { //Act TestDelegate td = () => FileLibrary.CheckFilesExist(testFilesDirPath, "TextFile*", 5, 1); //Assert Assert.DoesNotThrow(td); }