Esempio n. 1
0
        public void TestProgressCopier()
        {
            IFileCopier pfc = new ProgressFileCopier(new ConsoleProgressBar());

            pfc.Copy(SRC_PATH, DST_PATH, true);
            Assert.IsTrue(File.Exists(DST_PATH));
            Assert.IsTrue(FileComparer.Compare(SRC_PATH, DST_PATH));
        }
Esempio n. 2
0
        public void TestCopier()
        {
            IFileCopier pfc = new FileCopier();

            pfc.Copy(SRC_PATH, DST_PATH, true);
            Assert.IsTrue(File.Exists(DST_PATH));
            Assert.IsTrue(FileComparer.Compare(SRC_PATH, DST_PATH));
        }