Exemplo n.º 1
0
        public void Copying_Should_Return_Updated_FileWrapper_And_Keep_Metadata()
        {
            Assert.False(targetPath.Exists);
            VirtualFile copy = original.Copy(targetPath.FullName);

            Assert.AreEqual(original.MetaData.Length, copy.MetaData.Length);
            Assert.AreEqual(targetPath.Name, copy.MetaData.Name);
            Assert.AreEqual(sourcePath.Name, original.MetaData.Name);
        }
 public void Copying_File_Should_Create_New_File()
 {
     Assert.False(FileSystem.IsFileAvailable(targetPath));
     source.Copy(targetPath);
     Assert.True(FileSystem.IsFileAvailable(targetPath));
 }