Skip to content

Commit 264f1e0

Browse files
committed
Also test that MockDirectory.CreateDirectory with an extended path returns a DirectoryInfo with an extended path
1 parent b9d59a2 commit 264f1e0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockDirectoryTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,10 +755,11 @@ public async Task MockDirectory_CreateDirectory_ShouldSupportExtendedLengthPaths
755755
var fileSystem = new MockFileSystem();
756756

757757
// Act
758-
fileSystem.Directory.CreateDirectory(XFS.Path(@"\\?\c:\bar"));
758+
var directoryInfo = fileSystem.Directory.CreateDirectory(XFS.Path(@"\\?\c:\bar"));
759759

760760
// Assert
761761
await That(fileSystem.Directory.Exists(XFS.Path(@"\\?\c:\bar"))).IsTrue();
762+
await That(directoryInfo.FullName).IsEqualTo(@"\\?\c:\bar");
762763
}
763764

764765
// Issue #210

0 commit comments

Comments
 (0)