public void GetFileTimeExistsTest() { var FileTime = LocalFileSystem.GetFileTime("ExistentFolder"); Assert.IsTrue(FileTime.CreationTime >= DateTime.Parse("01/01/2011")); Assert.IsTrue(FileTime.LastAccessTime >= DateTime.Parse("01/01/2011")); Assert.IsTrue(FileTime.LastWriteTime >= DateTime.Parse("01/01/2011")); }
public void SynchronizeTest() { FileSystem SourceFileSystem = new LocalFileSystem(Config.ProjectTestInputPath); FileSystem DestinationFileSystem = new LocalFileSystem(Config.ProjectTestOutputPath); Synchronizer.Synchronize( SourceFileSystem, ".", DestinationFileSystem, ".", Synchronizer.SynchronizationMode.CopyNewAndUpdateOldFiles, Synchronizer.ReferenceMode.SizeAndLastWriteTime ); DestinationFileSystem.GetFileTime("ExistentFolder/2/AnotherFile.txt"); }