You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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):
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 ?