System.IO.Abstractions
System.IO.Abstractions copied to clipboard
Using the MoveTo function to move a mocked directory doesn't update the DirectoryInfo information
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).
Thanks for reporting!
This is addressed in release v19.2.15.