Skip to content

MockFile.Delete does not throw exception when file does not exist #284

@borismod

Description

@borismod

Unit test to reproduce:

var fs = new MockFileSystem();
fs.File.Delete(@"c:\someFilePath.txt");

The above code does not throw any exception, while the real File.Delete from System IO will throw

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: in workIssues that are currently worked ontype: 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