You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using the MoveTo function to move a mocked directory doesn't update the DirectoryInfo information #736
Describe the bug
In a unit test which consists on moving directory using the MoveTo function from IDirectoryInfo doesn't update the IDirectoryInfo entries and the moved directory info keeps the same initial values. However using the same function on the debug and release modes( FileSystem) does update the fields and properties of the DirectorytInfo
To Reproduce
Steps to reproduce the behavior:
Mock a directory
Initialize DirectoryInfo
Move the directory to a new destination
Compare the path of the current directory and the destination path.
Expected behavior
The moved mocked directory is updated to new state (new path).
Activity
fgreinacher commentedon Jun 28, 2021
Thanks for reporting!
fix: update Name of `DirectoryInfo` when using `MoveTo` (#972)
github-actions commentedon Apr 19, 2023
This is addressed in release v19.2.15.