Пример #1
0
        public void GetTimeStamp(string fileName)
        {
            var file      = new FileInfo(fileName);
            var setting   = new BackupSettings(true, file.Directory, ".bak", BackupSettings.DefaultTimeStampFormat, false, 1, Int32.MaxValue);
            var timeStamp = BackupFile.GetTimeStamp(file, setting);

            Assert.AreEqual(new DateTime(2015, 06, 13, 17, 05, 15), timeStamp);
        }