public void CreateDirectoryTree() { using (var testEnvironment = StreamTestEnvironment.FromExistingVhdx(true)) { using (var filesystem = new ExFatPathFilesystem(testEnvironment.PartitionStream)) { var now = DateTime.UtcNow; var path = @"a\b\c"; filesystem.CreateDirectory(path); var d = filesystem.GetCreationTimeUtc(path); Assert.IsTrue(IsAlmostMoreRecentThan(d, now)); } } }
/// <inheritdoc /> public override DateTime GetCreationTimeUtc(string path) { return(_filesystem.GetCreationTimeUtc(path)); }