-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return original path #406
Return original path #406
Conversation
Thanks for working on this @updateaman - the changes look good so far. Could you additionally check if we have the same inconsistency for |
@fgreinacher yes, they had the same problem with ToString(). I've fixed them and added tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some comments around backwards compatibility. Will merge as soon as those are addressed.
Thanks in advance!
System.IO.Abstractions.TestingHelpers.Tests/MockDriveInfoTests.cs
Outdated
Show resolved
Hide resolved
System.IO.Abstractions.TestingHelpers.Tests/MockFileInfoTests.cs
Outdated
Show resolved
Hide resolved
LGTM, thanks again @updateaman! |
To fix issue #400
Return original directory path passed by the user from MockDirectoryInfo ToString() method.
Which is what the original directoryInfo class does:
https://github.com/dotnet/corefx/blob/master/src/System.IO.FileSystem/src/System/IO/DirectoryInfo.cs