Correct way to Mock IFileSystemWatcher with IFileSystem
I’ve created a simple class that has a IFileSystem
structure and a file which is tracked through IFileSystemWatcher
. I’m trying to create mock tests for it, but somehow OnChanged
doesn’t get triggered through the mock test when I delete the file.