public void TestCreateWithFileSecurity() { var tempLongPathFilename = longPathDirectory.Combine(Pri.LongPath.Path.GetRandomFileName()); try { Directory.CreateDirectory(tempLongPathFilename, new DirectorySecurity()); Assert.IsTrue(tempLongPathFilename.Exists()); } finally { Directory.Delete(tempLongPathFilename); } }