public void CreateMonitor() { _monitor = new FrameworkFileSystemMonitor((ILoggerFactory)AppContext.GetObject("LoggerFactory", typeof(ILoggerFactory))); Assert.IsNotNull(_monitor); _monitor.FileSystemChanged += new FileSystemChangeEventHandler(_monitor_FileSystemChanged); _fsChangedFired = false; _fsChangedFireCount = 0; _lastChangeType = ChangeType.Changed; _lastNewPath = null; _lastOldPath = null; }
public void DisposeMonitor() { _monitor.Dispose(); _monitor = null; }