/// <summary> /// Stop and remove our current watcher object. /// </summary> private void RemoveWatcher() { if (watcher != null) { watcher.Stop(); watcher = null; } }
/// <summary> /// Install our watcher object so as to get notifications /// about changes to a test. /// </summary> /// <param name="assemblyFileName">Full path of the assembly to watch</param> private void InstallWatcher() { if (watcher != null) { watcher.Stop(); } watcher = new AssemblyWatcher(1000, TestProject.ActiveConfig.AbsolutePaths); watcher.AssemblyChangedEvent += new AssemblyWatcher.AssemblyChangedHandler(OnTestChanged); watcher.Start(); }
/// <summary> /// Stop and remove our current watcher object. /// </summary> private void RemoveWatcher() { if ( watcher != null ) { watcher.Stop(); watcher = null; } }
/// <summary> /// Install our watcher object so as to get notifications /// about changes to a test. /// </summary> private void InstallWatcher() { if(watcher!=null) watcher.Stop(); watcher = new AssemblyWatcher( 1000, TestProject.ActiveConfig.Assemblies.ToArray() ); watcher.AssemblyChangedEvent += new AssemblyWatcher.AssemblyChangedHandler( OnTestChanged ); watcher.Start(); }