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

Made FileSystemWatcher on MockFileSystem mockable #409

Merged
merged 10 commits into from
Dec 1, 2018
Merged

Made FileSystemWatcher on MockFileSystem mockable #409

merged 10 commits into from
Dec 1, 2018

Conversation

rkoeninger
Copy link
Contributor

Fixes #329

  • Removed existing MockFileSystemWatcher as it doesn't do anything, isn't used and it would be confusing if client code attempted to test with it.
  • Made MockFileSystemWatcherFactory just throw NotImplementedException to make it clear there is no built-in MockFileSystemWatcher.
  • Made MockFileSystem.FileSystemWatcher (of type IFileSystemWatcherFactory) set-able so client code can provide its own mock implementation of FileSystemWatcherBase.
  • Added/Updated tests.

@rkoeninger
Copy link
Contributor Author

@fgreinacher @jpreese @robkeim thoughts?

@robkeim
Copy link
Contributor

robkeim commented Nov 30, 2018

@rkoeninger this change seems straight forward to me, I added one minor nit.

@fgreinacher
Copy link
Contributor

I’ll have a look today or tomorrow!

@fgreinacher
Copy link
Contributor

One minor suggestion, otherwise this looks great!

@fgreinacher
Copy link
Contributor

Thanks @rkoeninger

@fgreinacher fgreinacher merged commit ccc8000 into TestableIO:master Dec 1, 2018
@rkoeninger rkoeninger deleted the mockable-watcher branch December 1, 2018 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants