Ejemplo n.º 1
0
        public void TestMoveFileOverwrite()
        {
            Initilize("FileOverwriter");
            IFileHandler fileOverwriter = new FileOverwriter <Compress>(@"D:\TestFileHandler\FileOverwriter\Source",
                                                                        new List <string> {
                @"D:\TestFileHandler\FileOverwriter\Dest"
            }, _pr);

            fileOverwriter.MoveFiles();
            fileOverwriter.DeleteTemps();
        }
Ejemplo n.º 2
0
        public void TestMoveFileOverwriteDup()
        {
            var des = Initilize("FileOverwriter");

            des.CreateSubdirectory("Dest");

            IFileHandler fileOverwriter = new FileOverwriter <Compress>(@"D:\TestFileHandler\FileOverwriter\Source",
                                                                        new List <string> {
                @"D:\TestFileHandler\FileOverwriter\Dest"
            }, _pr);

            fileOverwriter.MoveFiles();
            fileOverwriter.DeleteTemps();
        }