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. added
    state: needs discussion
    type: bug
    on Jun 28, 2021
  2. fgreinacher commented on Jun 28, 2021

    @fgreinacher
    Contributor

    Thanks for reporting!

  3. added
    state: ready to pick
    area: testinghelpers
    and removed
    state: needs discussion
    on Jun 28, 2021
  4. added
    flag: good-first-issue
    on Feb 28, 2022
  5. added a commit that references this issue on Apr 18, 2023
    2e515ed
  6. github-actions commented on Apr 19, 2023

    @github-actions

    This is addressed in release v19.2.15.

  7. added
    state: released
    on Apr 19, 2023
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: testinghelpersflag: good-first-issuestate: ready to pickstate: releasedtype: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions