Ejemplo n.º 1
0
        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').");
        }
Ejemplo n.º 2
0
        public void CheckFilesExist_SearchForExistingFiles_DoNotThrowsException()
        {
            //Act
            TestDelegate td = () => FileLibrary.CheckFilesExist(testFilesDirPath, "TextFile*", 5, 1);

            //Assert
            Assert.DoesNotThrow(td);
        }