public void Watcher_Filter_FindsPDF() { FolderMonitorDebug folderMonitor = new FolderMonitorDebug(filePath, new StorageProvider()); folderMonitor.Observe(); createTestFile(".pdf"); deleteTestFile(".pdf"); Assert.IsTrue(folderMonitor.Running); }
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); }