Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
        }