public void Copying_Folder_Should_Create_New_Folder_At_Destination() { Assert.False(targetDir.Exists); var targetFolder = originalFolder.Copy(targetDir.FullName); targetDir.Refresh(); Assert.True(targetDir.Exists); Assert.AreEqual(originalDir.GetFiles().Count(), targetDir.GetFiles().Count()); Assert.AreEqual(originalDir.GetDirectories().Count(), targetDir.GetDirectories().Count()); }
public void Copying_Folder_Should_Create_New_Folder_At_Destination() { var target = source.Copy(targetPath); Assert.IsTrue(FileSystem.IsFolderAvailable(targetPath)); Assert.IsTrue(FileSystem.IsFolderAvailable(target.MetaData.FullName)); }