Skip to content

Made FileSystemWatcher on MockFileSystem mockable - #409

Merged
fgreinacher merged 10 commits into
TestableIO:masterfrom
rkoeninger:mockable-watcher
Dec 1, 2018
Merged

fgreinacher merged 10 commits into
TestableIO:masterfrom
rkoeninger:mockable-watcher

Conversation

@rkoeninger

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

@fgreinacher @jpreese @robkeim thoughts?

@robkeim

robkeim commented Nov 30, 2018

Copy link
Copy Markdown
Contributor

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

@fgreinacher

Copy link
Copy Markdown
Contributor

I’ll have a look today or tomorrow!

@fgreinacher

Copy link
Copy Markdown
Contributor

One minor suggestion, otherwise this looks great!

Co-Authored-By: rkoeninger <rkoeninger@att.net>
@fgreinacher

Copy link
Copy Markdown
Contributor

Thanks @rkoeninger

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