Skip to content

FileUtility abstraction #10954

@kshyju

Description

@kshyju

We need to introduce an abstraction to enhance the FileUtility class usage.

The class exposes an Instance property

public static IFileSystem Instance
{
get { return _instance ?? _default; }
set { _instance = value; }

which I see many tests are overriding when running the tests with a mocked IFileSystem. But since FileUtility.Instance is a shared state, if multiple tests are running parallelly, this would cause one test to get the state set by another test.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions