Skip to content

MockFile.Copy now throws a FileNotFoundException when the source file doesn't exist. - #236

Closed
ausarb wants to merge 1 commit into
TestableIO:masterfrom
ausarb:bugfix/issue233-File-Copy-and-Move-should-throw-FileNotFoundException-if-source-does-not-exist
Closed

ausarb wants to merge 1 commit into
TestableIO:masterfrom
ausarb:bugfix/issue233-File-Copy-and-Move-should-throw-FileNotFoundException-if-source-does-not-exist

Conversation

@ausarb

@ausarb ausarb commented Aug 7, 2017

Copy link
Copy Markdown

Previously no exception was thrown and it appeared to work, but later requests to some MockFileSystem methods would then fail with NullReferenceException's.

The fix mimics System.IO.File's Copy and Move methods.

… doesn't exist. Previously no exception was thrown and it appeared to work, but later requests to some MockFileSystem methods would then fail with NullReferenceException's.
@jpreese

jpreese commented Jul 6, 2018

Copy link
Copy Markdown
Member

Note, this is for #233

@jpreese

jpreese commented Jul 7, 2018

Copy link
Copy Markdown
Member

This was resolved with #299

@jpreese jpreese closed this Jul 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants