Ejemplo n.º 1
0
        public void CopyToWithNotExistingSource()
        {
            // Setup
            var fileSystem = new TestFileSystem();

            fileSystem.StageDirectory(@"x:\directory");
            var file = new TestFile(fileSystem, @"x:\directory\File.bmp");
            var dest = new TestFile(fileSystem, @"x:\directory\file2.bmp");

            // Execute
            file.CopyTo(dest);
        }
Ejemplo n.º 2
0
        public void CopyToWithNotExistingSource()
        {
            // Setup
            var fileSystem = new TestFileSystem();
            fileSystem.StageDirectory(@"x:\directory");
            var file = new TestFile(fileSystem, @"x:\directory\File.bmp");
            var dest = new TestFile(fileSystem, @"x:\directory\file2.bmp");

            // Execute
            file.CopyTo(dest);
        }