예제 #1
0
        public void Watcher_Filter_FindsPDF()
        {
            FolderMonitorDebug folderMonitor = new FolderMonitorDebug(filePath, new StorageProvider());

            folderMonitor.Observe();

            createTestFile(".pdf");
            deleteTestFile(".pdf");

            Assert.IsTrue(folderMonitor.Running);
        }
예제 #2
0
        public void Watcher_Filter_IgnoresTxt()
        {
            Mock <IStorageProvider> mockStorageProvider = new Mock <IStorageProvider>();
            FolderMonitorDebug      folderMonitor       = new FolderMonitorDebug(filePath, new StorageProviderDebug());

            folderMonitor.Observe();

            createTestFile(".txt");
            deleteTestFile(".txt");


            Assert.IsFalse(folderMonitor.Running);
        }