diff options
author | Steve Pfister <steve.pfister@microsoft.com> | 2019-12-27 22:41:22 +0300 |
---|---|---|
committer | Steve Pfister <steve.pfister@microsoft.com> | 2019-12-27 22:41:22 +0300 |
commit | afff76422417d0cfefca10ed0e262694aaf9d9e9 (patch) | |
tree | 0e7d4284d531905f07184bd68eed995274efeb6f /src/System.IO.FileSystem/tests | |
parent | cfbc19d80fe8bc9cf174dbeec7a11bc1b3ccc18b (diff) |
Fixes https://github.com/mono/mono/issues/18291
Backport of https://github.com/dotnet/runtime/commit/db671a853e3c7a3eea5016b2dedf7b1977a17002
Diffstat (limited to 'src/System.IO.FileSystem/tests')
-rw-r--r-- | src/System.IO.FileSystem/tests/DirectoryInfo/Create.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/System.IO.FileSystem/tests/DirectoryInfo/Create.cs b/src/System.IO.FileSystem/tests/DirectoryInfo/Create.cs index 45c2a637d0..56425d8ee2 100644 --- a/src/System.IO.FileSystem/tests/DirectoryInfo/Create.cs +++ b/src/System.IO.FileSystem/tests/DirectoryInfo/Create.cs @@ -74,5 +74,14 @@ namespace System.IO.Tests DirectoryInfo testInfo = new DirectoryInfo(testDir + extension + trailing); Assert.Equal(trailing, testInfo.Extension); } + + [Fact] + public void CreateDirectoryWithAttributes() + { + string testDir = Path.Combine(GetTestFilePath(), "CreateDirectoryWithAttributes"); + DirectoryInfo testInfo = new DirectoryInfo(testDir); + testInfo.Create(); + testInfo.Attributes = FileAttributes.Directory | FileAttributes.Normal; + } } } |