示例#1
0
        public void CanCopyLocalFile()
        {
            string source = Path.GetTempFileName();
            string destination = Path.GetTempFileName();

            if (File.Exists(destination))
            {
                File.Delete(destination);
            }

            Computer computer = new Computer("localhost", TestContext.LocalAdminCredential);

            Copier copier = new Copier();
            copier.Copy(computer, source, destination);

            Assert.That(File.Exists(destination));
        }
示例#2
0
 public void Copy(Computer computer, string source, string destination)
 {
     Console.WriteLine("Copying from {0} to {1} on computer {2}...", source, destination, computer.Name);
 }