Esempio n. 1
0
        public void LoadTests(IList <string> files)
        {
            if (IsPackageLoaded)
            {
                UnloadTests();
            }

            _files = files;
            TestsLoading?.Invoke(new TestFilesLoadingEventArgs(files));

            _package = MakeTestPackage(files);

            Runner = _testEngine.GetRunner(_package);

            Tests = new TestNode(Runner.Explore(TestFilter.Empty));

            _resultIndex.Clear();

            TestLoaded?.Invoke(new TestNodeEventArgs(TestAction.TestLoaded, Tests));

            foreach (var subPackage in _package.SubPackages)
            {
                RecentFiles.SetMostRecent(subPackage.FullName);
            }
        }
Esempio n. 2
0
 public void FireTestsLoading(IList <string> files)
 {
     TestsLoading?.Invoke(new TestFilesLoadingEventArgs(files));
 }
Esempio n. 3
0
 public void FireTestsLoading()
 {
     TestsLoading?.Invoke(new TestEventArgs());
 }