Skip to content

Add events on major events #168

@zvirja

Description

@zvirja

Sometimes it's needed to test sequence of events with file system and currently it's impossible to do that with current implementation of MockFileSystem. Basically, we should add a couple of events, so we could subscribe on that events in our test. Moreover, this way we could simulate various situations (e.g. throw sharing violation exception when particular file is opened).

List of events:

  • File is being opened
  • File is being created
  • File is being deleted
  • File is being updated
  • File stream is opened
  • File stream is closed
  • Directory is being created
  • Directory is being deleted

I could implement that and create a PR for you. Will you approve such kind of PR?
Do you see some other ways to achieve the desired behavior?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions