Esempio n. 1
0
 /**
  * @brief handles changes in test container files
  */
 private void OnTestContainerChanged(object sender, Events.TestContainerEventArgs e)
 {
     if (e == null)
     {
         return;
     }
     if (null != this.TestContainersChanged)
     {
         this.TestContainersChanged(this, new TestContainerListArgs(this._testContainers));
     }
 }
Esempio n. 2
0
 private void OnTestContainerRemoved(object sender, Events.TestContainerEventArgs e)
 {
     if (e == null)
     {
         return;
     }
     if (!this._testContainers.Contains(e.File))
     {
         return;
     }
     if (!TestContainerHelper.IsTestContainerFile(e.File))
     {
         return;
     }
     this._testContainerWatcher.RemoveWatch(e.File);
     this._testContainers.Remove(e.File);
     if (null != this.TestContainersChanged)
     {
         this.TestContainersChanged(this, new TestContainerListArgs(this._testContainers));
     }
 }