//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void stopMonitoringWhenLifecycleStops() throws Throwable
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void StopMonitoringWhenLifecycleStops()
        {
            DefaultFileSystemWatcherService service = new DefaultFileSystemWatcherService(_jobScheduler, _fileWatcher);

            service.Init();
            service.Start();
            service.Stop();

            verify(_fileWatcher).stopWatching();
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void closeFileWatcherOnShutdown() throws Throwable
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
        public virtual void CloseFileWatcherOnShutdown()
        {
            DefaultFileSystemWatcherService service = new DefaultFileSystemWatcherService(_jobScheduler, _fileWatcher);

            service.Init();
            service.Start();
            service.Stop();
            service.Shutdown();

            verify(_fileWatcher).close();
        }