-
Notifications
You must be signed in to change notification settings - Fork 257
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
fix: fixed mock file system exception when using root path as a parameter #1132
fix: fixed mock file system exception when using root path as a parameter #1132
Conversation
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.
Thanks for the pull request, I only have some minor suggestions.
Please also adapt the title to conform to the conventional commits guideline.
tests/TestableIO.System.IO.Abstractions.TestingHelpers.Tests/MockFileSystemTests.cs
Show resolved
Hide resolved
oh sure, I'll add those in future commits. |
src/TestableIO.System.IO.Abstractions.TestingHelpers/MockFileSystem.cs
Outdated
Show resolved
Hide resolved
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.
Looks good, thank you for your effort, @vladimir-shirmanov 👍
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.
Sorry, I just saw, that the tests failed for Ubuntu and MacOS. Probably the path separator must be OS dependent, @vladimir-shirmanov
I see that some tests are marked as Windows only, how do you think is it a good candidate for that as well? |
This is addressed in release v21.0.26. |
fix: MockFileSystem does not support Root directories
Description
Added a check inside AddFile to be able to add new Drives within a constructor
Fixed #702