Exemplo n.º 1
0
        public string getAllFilesInDirTes()
        {
            string[] files = hardDrive.getAllFilesInFolder("C:\\TestDir");
            //
            if (files.Length < 3)
            {
                return("getAllFilesInDirTes unpass");
            }
            //

            if (!(files[0].Contains("file1.txt")) ||
                !(files[1].Contains("file2.php")) ||
                !(files[2].Contains("file3")))
            {
                return("getAllFilesInDirTes unpass");
            }



            return("getAllFilesInDirTes pass");
        }
Exemplo n.º 2
0
        public string[] getFileInFolderNonRecursive(string dirPath)
        {
            //throw new NotImplementedException();

            return(hardDrive.getAllFilesInFolder(dirPath));
        }