Skip to content

DirectoryHelper.DeleteDirectory() throws Exceptions #970

Closed
@ThomasBarnekow

Description

@ThomasBarnekow

The DirectoryHelper.DeleteDirectory() method called by BaseFixture.Dispose() does not catch and just log all Exceptions but throws an UnauthorizedAccessException when attempting to delete a file (see File.Delete(file);), e.g., if that file is currently in use by another process. This leads to failed tests while it really shouldn't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions