public void CopyFromWithNullDest() { // Setup var fileSystem = new TestFileSystem(); var file = new TestFile(fileSystem, @"x:\directory\file2.bmp"); // Execute file.CopyFrom(a_source: null); }
public void CopyFromWithNotExistingSource() { // Setup var fileSystem = new TestFileSystem(); fileSystem.StageDirectory(@"x:\directory"); var source = new TestFile(fileSystem, @"x:\directory\File.bmp"); var file = new TestFile(fileSystem, @"x:\directory\file2.bmp"); // Execute file.CopyFrom(source); }
public void CopyFrom() { // Setup var fileSystem = new TestFileSystem(); var source = fileSystem.StageFile(@"x:\directory\File.bmp", new TestFileInstance { Size = 240 }); var file = new TestFile(fileSystem, @"x:\directory\file2.bmp"); // Execute file.CopyFrom(source); // Assert Assert.IsTrue(file.Exists); Assert.AreEqual(240, file.Size); }
public void CopyFromWithNullDest() { // Setup var fileSystem = new TestFileSystem(); var file = new TestFile(fileSystem, @"x:\directory\file2.bmp"); // Execute file.CopyFrom(a_source: null); }
public void CopyFromWithNotExistingSource() { // Setup var fileSystem = new TestFileSystem(); fileSystem.StageDirectory(@"x:\directory"); var source = new TestFile(fileSystem, @"x:\directory\File.bmp"); var file = new TestFile(fileSystem, @"x:\directory\file2.bmp"); // Execute file.CopyFrom(source); }
public void CopyFrom() { // Setup var fileSystem = new TestFileSystem(); var source = fileSystem.StageFile(@"x:\directory\File.bmp", new TestFileInstance { Size = 240 }); var file = new TestFile(fileSystem, @"x:\directory\file2.bmp"); // Execute file.CopyFrom(source); // Assert Assert.IsTrue(file.Exists); Assert.AreEqual(240, file.Size); }