Esempio n. 1
0
        public void ShouldListenToAllEventsOnInternalWatcher()
        {
            MockFileSystemWatcher mockWatcher = new MockFileSystemWatcher();

            using (SafeEventFileSystemWatcher tested = new SafeEventFileSystemWatcher(mockWatcher))
            {
                Assert.AreEqual(1, mockWatcher.CreatedListeners().Length);
                Assert.AreEqual(1, mockWatcher.ChangedListeners().Length);
                Assert.AreEqual(1, mockWatcher.DeletedListeners().Length);
                Assert.AreEqual(1, mockWatcher.RenamedListeners().Length);
            }
        }