System.IO.Abstractions icon indicating copy to clipboard operation
System.IO.Abstractions copied to clipboard

Using the MoveTo function to move a mocked directory doesn't update the DirectoryInfo information

Open SamirAL89 opened this issue 4 years ago • 1 comments

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:

  1. Mock a directory
  2. Initialize DirectoryInfo
  3. Move the directory to a new destination
  4. Compare the path of the current directory and the destination path.

Expected behavior The moved mocked directory is updated to new state (new path).

SamirAL89 avatar Jun 28 '21 06:06 SamirAL89

Thanks for reporting!

fgreinacher avatar Jun 28 '21 19:06 fgreinacher

This is addressed in release v19.2.15.

github-actions[bot] avatar Apr 19 '23 17:04 github-actions[bot]