Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Observing changes in the MockFileSystem #805

Open
SuperJMN opened this issue Feb 3, 2022 · 1 comment
Open

Observing changes in the MockFileSystem #805

SuperJMN opened this issue Feb 3, 2022 · 1 comment
Labels
area: testinghelpers Issues that address the testing helpers state: ready to pick Issues that are ready for being worked on type: enhancement Issues that propose new functionality

Comments

@SuperJMN
Copy link

SuperJMN commented Feb 3, 2022

Describe the solution you'd like
I'd like to be able to observe common/interesting events (from a testing perspective) that happen into a MockFileSystem.

Why? I'm creating a cache service that uses an IFileSystem and I need to test that a file is only written once.

Describe alternatives you've considered
I've tried to implement my own MockFileSystem using System.Reactive, but the work is a bit overwhelming.

@SuperJMN SuperJMN added state: needs discussion Issues that need further discussion type: enhancement Issues that propose new functionality labels Feb 3, 2022
@fgreinacher
Copy link
Contributor

This is the same as #168 which has gone stale.

As mentioned over there I generally like the idea and would accept a contribution here unless it's getting overly complex.

@fgreinacher fgreinacher added area: testinghelpers Issues that address the testing helpers state: ready to pick Issues that are ready for being worked on and removed state: needs discussion Issues that need further discussion labels Feb 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: testinghelpers Issues that address the testing helpers state: ready to pick Issues that are ready for being worked on type: enhancement Issues that propose new functionality
Projects
None yet
Development

No branches or pull requests

2 participants