コード例 #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);
        }
コード例 #2
0
ファイル: FileWatcherFacts.cs プロジェクト: voloda/dnx
        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);
        }