public void IsAlreadyWatched(string newPath, bool expectedResult) { var watcher = new FileWatcher(); watcher.AddWatcher(new WatcherRoot(PathHelpers.GetRootedPath("myprojects", "foo"))); var isAlreadyWatched = watcher.IsAlreadyWatched(newPath); Assert.Equal(expectedResult, isAlreadyWatched); }
public void IsAlreadyWatched(string newPath, bool expectedResult) { var watcher = new FileWatcher(); watcher.AddWatcher(new WatcherRoot(@"c:\myprojects\foo")); var isAlreadyWatched = watcher.IsAlreadyWatched(newPath); Assert.Equal(expectedResult, isAlreadyWatched); }