-
Notifications
You must be signed in to change notification settings - Fork 263
Move a readonly file results in inconsistent state #870
Copy link
Copy link
Closed
Labels
area: testinghelpersIssues that address the testing helpersIssues that address the testing helpersstate: in workIssues that are currently worked onIssues that are currently worked onstate: releasedIssues that are releasedIssues that are releasedtype: bugIssues that describe misbehaving functionalityIssues that describe misbehaving functionality
Metadata
Metadata
Assignees
Labels
area: testinghelpersIssues that address the testing helpersIssues that address the testing helpersstate: in workIssues that are currently worked onIssues that are currently worked onstate: releasedIssues that are releasedIssues that are releasedtype: bugIssues that describe misbehaving functionalityIssues that describe misbehaving functionality
Type
Fields
Give feedbackNo fields configured for issues without a type.
Describe the bug
Moving a readonly file throws (correctly) an UnauthorizedAccessException, but afterwards both the source file and also the target file exist.
To Reproduce
Consider the following unit test (using Xunit and FluentAssertions):
This test fails at the last line, as the file exists now twice, resulting in an inconsistent state of the
MockFileSystemExpected behavior
The unit test should be successful.
Additional context
This issue might have similar root cause as #849 ?