Exemplo n.º 1
0
 public void CopyTest()
 {
     File.Delete(dest);
     Assert.That(() => BackgroundCopyManager.Copy(src, dest), Throws.Nothing);
     Assert.That(File.Exists(dest));
     File.Delete(dest);
 }
Exemplo n.º 2
0
        public void CopyTest()
        {
            using var tempRoot = new TemporaryDirectory();

            var srcFile = tempRoot.CreateFile().FullName;

            var dstFile = tempRoot.RandomTxtFileFullPath;


            Assert.That(() => BackgroundCopyManager.Copy(srcFile, dstFile), Throws.Nothing);

            Assert.That(File.Exists(dstFile));
        }