Exemplo n.º 1
0
        public void TestGetLastWriteTime()
        {
            var tempLongPathFilename = longPathDirectory.Combine(Pri.LongPath.Path.GetRandomFileName());

            tempLongPathFilename.CreateDirectory();

            try {
                var dateTime = Directory.GetLastWriteTime(tempLongPathFilename);
                var fi       = new DirectoryInfo(tempLongPathFilename);
                Assert.AreEqual(fi.LastWriteTime, dateTime);
            }
            finally {
                Directory.Delete(tempLongPathFilename);
            }
        }