public void TestGetLastAccessTimeUtc() { var tempLongPathFilename = longPathDirectory.Combine(Pri.LongPath.Path.GetRandomFileName()); tempLongPathFilename.CreateDirectory(); try { var dateTime = Directory.GetLastAccessTimeUtc(tempLongPathFilename); var fi = new DirectoryInfo(tempLongPathFilename); Assert.AreEqual(fi.LastAccessTimeUtc, dateTime); } finally { Directory.Delete(tempLongPathFilename); } }