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); }
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); }