Skip to content

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

Closed

Description

@SamirAL89

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).

Activity

  1. fgreinacher commented on Jun 28, 2021

    @fgreinacher
    Contributor

    Thanks for reporting!

  2. added
    state: ready to pickIssues that are ready for being worked on
    and removed on Jun 28, 2021
  3. added a commit that references this issue on Apr 18, 2023
    2e515ed
  4. github-actions commented on Apr 19, 2023

    @github-actions

    This is addressed in release v19.2.15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: testinghelpersIssues that address the testing helpersflag: good-first-issueIssues that are good for first time contributorsstate: ready to pickIssues that are ready for being worked onstate: releasedIssues that are releasedtype: bugIssues that describe misbehaving functionality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions