public void UpdateSolutionTestContainersAndFileWatchers(IEnumerable <string> sources, ProjectInfo projInfo, bool isAdd)
 {
     foreach (var path in sources)
     {
         if (isAdd)
         {
             projInfo.AddTestContainer(this, path);
             _testFilesUpdateWatcher.AddWatch(path);
         }
         else
         {
             projInfo.RemoveTestContainer(path);
             _testFilesUpdateWatcher.RemoveWatch(path);
         }
     }
 }
예제 #2
0
        public void UpdateContainersAndListeners(IEnumerable <string> sources, ProjectInfo projInfo, bool isAdd)
        {
            if (projInfo == null)
            {
                return;
            }

            foreach (var path in sources)
            {
                if (isAdd)
                {
                    projInfo.AddTestContainer(this, path);
                    _testFilesUpdateWatcher.AddWatch(path);
                }
                else
                {
                    projInfo.RemoveTestContainer(path);
                    _testFilesUpdateWatcher.RemoveWatch(path);
                }
            }
        }