System.IO.Tests.Directory_CreateDirectory.PathWithReservedDeviceNameAsPath_ThrowsDirectoryNotFoundException C# (CSharp) Метод

PathWithReservedDeviceNameAsPath_ThrowsDirectoryNotFoundException() приватный Метод

private PathWithReservedDeviceNameAsPath_ThrowsDirectoryNotFoundException ( ) : void
Результат void
        public void PathWithReservedDeviceNameAsPath_ThrowsDirectoryNotFoundException()
        {   // Throws DirectoryNotFoundException, when the behavior really should be an invalid path
            var paths = IOInputs.GetPathsWithReservedDeviceNames();
            Assert.All(paths, (path) =>
            {
                Assert.Throws<DirectoryNotFoundException>(() => Create(path));
            });
        }
Directory_CreateDirectory