예제 #1
0
 /// <summary>
 /// Stop and remove our current watcher object.
 /// </summary>
 private void RemoveWatcher()
 {
     if (watcher != null)
     {
         watcher.Stop();
         watcher = null;
     }
 }
예제 #2
0
        /// <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();
        }
예제 #3
0
		/// <summary>
		/// Stop and remove our current watcher object.
		/// </summary>
		private void RemoveWatcher()
		{
			if ( watcher != null )
			{
				watcher.Stop();
				watcher = null;
			}
		}
예제 #4
0
		/// <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();
		}